[prev in list] [next in list] [prev in thread] [next in thread]
List: mesos-user
Subject: Re: [Proposal] Remove the default value for agent work_dir
From: Jörg_Schad <joerg () mesosphere ! io>
Date: 2016-04-20 7:48:53
Message-ID: CALPK6M5xgLS=bfgeFYLJ+vargbe=_dPULe6O_pcA21NBhJ75wA () mail ! gmail ! com
[Download RAW message or body]
+1 Thanks for doing this!
On Tue, Apr 19, 2016 at 11:33 PM, Greg Mann <greg@mesosphere.io> wrote:
> It sounds like there's agreement that this is a good idea, so we'll
> proceed with the patches. Thanks y'all!
>
> Greg
>
> On Wed, Apr 13, 2016 at 3:39 PM, Justin Ryan <juryan@ziprealty.com> wrote:
>
>> I'm +1 on removing the default.
>>
>> While /opt/mesos may seem reasonable on the surface given many common
>> uses of /opt, putting data there doesn't really comply with FHS. Arguments
>> could be made for /var/mesos (which I'm using) or /srv/mesos, but I think
>> no default is fine.
>>
>> I noticed early on that it was a little odd to default to /tmp, but felt
>> as if I was following someone-or-other's lead. It's now clear that's not
>> the case. :)
>>
>> From: tommy xiao <xiaods@gmail.com>
>> Reply-To: "user@mesos.apache.org" <user@mesos.apache.org>
>> Date: Tuesday, April 12, 2016 at 11:14 PM
>> To: "user@mesos.apache.org" <user@mesos.apache.org>
>> Cc: dev <dev@mesos.apache.org>
>> Subject: Re: [Proposal] Remove the default value for agent work_dir
>>
>> how about /opt/mesos/
>> +1
>>
>> 2016-04-13 12:44 GMT+08:00 Avinash Sridharan <avinash@mesosphere.io>:
>>
>>> +1
>>>
>>> On Tue, Apr 12, 2016 at 9:31 PM, Jie Yu <yujie.jay@gmail.com> wrote:
>>>
>>>> +1
>>>>
>>>> On Tue, Apr 12, 2016 at 9:29 PM, James Peach <jorgar@gmail.com> wrote:
>>>>
>>>> >
>>>> > > On Apr 12, 2016, at 3:58 PM, Greg Mann <greg@mesosphere.io> wrote:
>>>> > >
>>>> > > Hey folks!
>>>> > > A number of situations have arisen in which the default value of the
>>>> > Mesos agent `--work_dir` flag (/tmp/mesos) has caused problems on
>>>> systems
>>>> > in which the automatic cleanup of '/tmp' deletes agent metadata. To
>>>> resolve
>>>> > this, we would like to eliminate the default value of the agent
>>>> > `--work_dir` flag. You can find the relevant JIRA here.
>>>> > >
>>>> > > We considered simply changing the default value to a more
>>>> appropriate
>>>> > location, but decided against this because the expected filesystem
>>>> > structure varies from platform to platform, and because it isn't
>>>> guaranteed
>>>> > that the Mesos agent would have access to the default path on a
>>>> particular
>>>> > platform.
>>>> > >
>>>> > > Eliminating the default `--work_dir` value means that the agent
>>>> would
>>>> > exit immediately if the flag is not provided, whereas currently it
>>>> launches
>>>> > successfully in this case. This will break existing infrastructure
>>>> which
>>>> > relies on launching the Mesos agent without specifying the work
>>>> directory.
>>>> > I believe this is an acceptable change because '/tmp/mesos' is not a
>>>> > suitable location for the agent work directory except for short-term
>>>> local
>>>> > testing, and any production scenario that is currently using this
>>>> location
>>>> > should be altered immediately.
>>>> >
>>>> > +1 from me too. Defaulting to /tmp just helps people shoot themselves
>>>> in
>>>> > the foot.
>>>> >
>>>> > J
>>>>
>>>
>>>
>>>
>>> --
>>> Avinash Sridharan, Mesosphere
>>> +1 (323) 702 5245
>>>
>>
>>
>>
>> --
>> Deshi Xiao
>> Twitter: xds2000
>> E-mail: xiaods(AT)gmail.com
>> ------------------------------
>>
>> P Please consider the environment before printing this e-mail
>> The information in this electronic mail message is the sender's
>> confidential business and may be legally privileged. It is intended solely
>> for the addressee(s). Access to this internet electronic mail message by
>> anyone else is unauthorized. If you are not the intended recipient, any
>> disclosure, copying, distribution or any action taken or omitted to be
>> taken in reliance on it is prohibited and may be unlawful. The sender
>> believes that this E-mail and any attachments were free of any virus, worm,
>> Trojan horse, and/or malicious code when sent. This message and its
>> attachments could have been infected during transmission. By reading the
>> message and opening any attachments, the recipient accepts full
>> responsibility for taking protective and remedial action about viruses and
>> other defects. The sender's employer is not liable for any loss or damage
>> arising in any way.
>>
>
>
[Attachment #3 (text/html)]
<div dir="ltr">+1 Thanks for doing this!</div><div class="gmail_extra"><br><div \
class="gmail_quote">On Tue, Apr 19, 2016 at 11:33 PM, Greg Mann <span \
dir="ltr"><<a href="mailto:greg@mesosphere.io" \
target="_blank">greg@mesosphere.io</a>></span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">It sounds like there's agreement that this \
is a good idea, so we'll proceed with the patches. Thanks y'all!<span \
class="HOEnZb"><font \
color="#888888"><div><br></div><div>Greg</div></font></span></div><div \
class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div \
class="gmail_quote">On Wed, Apr 13, 2016 at 3:39 PM, Justin Ryan <span \
dir="ltr"><<a href="mailto:juryan@ziprealty.com" \
target="_blank">juryan@ziprealty.com</a>></span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">
<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif">
<div>
<div>I'm +1 on removing the default.</div>
<div><br>
</div>
<div>While /opt/mesos may seem reasonable on the surface given many common uses of \
/opt, putting data there doesn't really comply with FHS. Arguments could be made \
for /var/mesos (which I'm using) or /srv/mesos, but I think no default is fine.</div> \
<div><br> </div>
<div>I noticed early on that it was a little odd to default to /tmp, but felt as if I \
was following someone-or-other's lead. It's now clear that's not the case. :)</div> \
<div> <div></div>
</div>
</div>
<div><br>
</div>
<span>
<div style="font-family:Calibri;font-size:12pt;text-align:left;color:black;BORDER-BOTTOM:medium \
none;BORDER-LEFT:medium \
none;PADDING-BOTTOM:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;BORDER-TOP:#b5c4df 1pt \
solid;BORDER-RIGHT:medium none;PADDING-TOP:3pt"> <span style="font-weight:bold">From: \
</span>tommy xiao <<a href="mailto:xiaods@gmail.com" \
target="_blank">xiaods@gmail.com</a>><br> <span style="font-weight:bold">Reply-To: \
</span>"<a href="mailto:user@mesos.apache.org" \
target="_blank">user@mesos.apache.org</a>" <<a \
href="mailto:user@mesos.apache.org" target="_blank">user@mesos.apache.org</a>><br> \
<span style="font-weight:bold">Date: </span>Tuesday, April 12, 2016 at 11:14 PM<br> \
<span style="font-weight:bold">To: </span>"<a \
href="mailto:user@mesos.apache.org" target="_blank">user@mesos.apache.org</a>" \
<<a href="mailto:user@mesos.apache.org" \
target="_blank">user@mesos.apache.org</a>><br> <span style="font-weight:bold">Cc: \
</span>dev <<a href="mailto:dev@mesos.apache.org" \
target="_blank">dev@mesos.apache.org</a>><br> <span \
style="font-weight:bold">Subject: </span>Re: [Proposal] Remove the default value for \
agent work_dir<br> </div><div><div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">how about /opt/mesos/
<div>+1</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2016-04-13 12:44 GMT+08:00 Avinash Sridharan <span \
dir="ltr"> <<a href="mailto:avinash@mesosphere.io" \
target="_blank">avinash@mesosphere.io</a>></span>:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> <div dir="ltr">+1</div>
<div class="gmail_extra">
<div>
<div><br>
<div class="gmail_quote">On Tue, Apr 12, 2016 at 9:31 PM, Jie Yu <span dir="ltr">
<<a href="mailto:yujie.jay@gmail.com" \
target="_blank">yujie.jay@gmail.com</a>></span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> +1<br>
<div>
<div><br>
On Tue, Apr 12, 2016 at 9:29 PM, James Peach <<a href="mailto:jorgar@gmail.com" \
target="_blank">jorgar@gmail.com</a>> wrote:<br> <br>
><br>
> > On Apr 12, 2016, at 3:58 PM, Greg Mann <<a \
href="mailto:greg@mesosphere.io" target="_blank">greg@mesosphere.io</a>> \
wrote:<br> > ><br>
> > Hey folks!<br>
> > A number of situations have arisen in which the default value of the<br>
> Mesos agent `--work_dir` flag (/tmp/mesos) has caused problems on systems<br>
> in which the automatic cleanup of '/tmp' deletes agent metadata. To \
resolve<br> > this, we would like to eliminate the default value of the agent<br>
> `--work_dir` flag. You can find the relevant JIRA here.<br>
> ><br>
> > We considered simply changing the default value to a more appropriate<br>
> location, but decided against this because the expected filesystem<br>
> structure varies from platform to platform, and because it isn't \
guaranteed<br> > that the Mesos agent would have access to the default path on a \
particular<br> > platform.<br>
> ><br>
> > Eliminating the default `--work_dir` value means that the agent would<br>
> exit immediately if the flag is not provided, whereas currently it launches<br>
> successfully in this case. This will break existing infrastructure which<br>
> relies on launching the Mesos agent without specifying the work directory.<br>
> I believe this is an acceptable change because '/tmp/mesos' is not a<br>
> suitable location for the agent work directory except for short-term local<br>
> testing, and any production scenario that is currently using this location<br>
> should be altered immediately.<br>
><br>
> +1 from me too. Defaulting to /tmp just helps people shoot themselves in<br>
> the foot.<br>
><br>
> J<br>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
</div>
</div>
<span><font color="#888888">-- <br>
<div>
<div dir="ltr">
<div>
<div dir="ltr">Avinash Sridharan, Mesosphere
<div><a href="tel:%2B1%20%28323%29%20702%205245" value="+13237025245" \
target="_blank">+1 (323) 702 5245</a></div> </div>
</div>
</div>
</div>
</font></span></div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div>Deshi Xiao<br>
Twitter: xds2000<br>
E-mail: xiaods(AT)<a href="http://gmail.com" target="_blank">gmail.com</a></div>
</div>
</div>
</div>
</div></div></span>
<hr>
<p><font color="green" size="5" face="Webdings">P</font> <font color="green" \
face="Palatino Linotype"> Please consider the environment before printing this \
e-mail</font></p> The information in this electronic mail message is the sender's \
confidential business and may be legally privileged. It is intended solely for the \
addressee(s). Access to this internet electronic mail message by anyone else is \
unauthorized. If you are not the intended recipient, any disclosure, copying, \
distribution or any action taken or omitted to be taken in reliance on it is \
prohibited and may be unlawful. The sender believes that this E-mail and any \
attachments were free of any virus, worm, Trojan horse, and/or malicious code when \
sent. This message and its attachments could have been infected during transmission. \
By reading the message and opening any attachments, the recipient accepts full \
responsibility for taking protective and remedial action about viruses and other \
defects. The sender's employer is not liable for any loss or damage arising in \
any way. </div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic