Re: [PATCH v2] Samba RADOS service registration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Feb 19, 2018 at 7:27 AM, John Spray <jspray@xxxxxxxxxx> wrote:
> On Thu, Feb 15, 2018 at 6:52 PM, David Disseldorp <ddiss@xxxxxxx> wrote:
>> Hi Jeff,
>>
>> On Thu, 15 Feb 2018 13:09:45 -0500, Jeff Layton wrote:
>>
>>> IIUC, if the program (samba in this case) dies, and then is restarted
>>> (maybe host reboots?), it'll get a new instance_guid, right? Or am I
>>> misunderstanding what rados_get_instance_id will return here?
>>
>> Yes, that's right. On smbd restart it'll reconnect and get a new
>> instance ID. The hostname is carried in the metadata, which makes it a
>> little easier to identify what's going on from the Ceph side.
>
> As you say, the hostname is what most people are interested in most of
> the time anyway.
>
> Using a guid here will also going to be similar to what people see
> when running Ceph services in auto-scaled groups of Kubernetes
> containers -- lovingly hand-named daemons will be a thing of the past,
> and people will be dealing either with an ephemeral ID, or with the
> hostname from the metadata.
>
> The part where dead instances stick around in the status until they
> time out is annoying.  In container environments we will need some
> logic for culling them when the container dies.  In other environments
> we would either need to add the ability to do the explicit naming of
> the daemon, or just put up with the stale entries.

You know, OSDs report to the monitor when they’re going down so that
their peers don’t need to wait through a timeout period. Should we
consider doing the same when a declared service shuts down?
-Greg
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux