Re: [PATCH v2] Samba RADOS service registration

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

 



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.

John

> AFAICT the service record (unfortunately) remains present after
> rados_shutdown() until a timeout on the manager is tripped, so
> it's quite possible to have to registrations for the same host for a
> short amount of time.
>
>
> Cheers, David
> --
> 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
--
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