[PATCH v2] Samba RADOS service registration
ddiss at suse.de
Thu Feb 15 18:52:19 UTC 2018
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.
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.
More information about the samba-technical