[sheepdog-users] [sheepdog-0.9.2] Late creation of pid file

Hitoshi Mitake mitake.hitoshi at gmail.com
Tue Sep 29 15:14:10 CEST 2015


On Tue, Sep 29, 2015 at 6:53 PM, Marcin Mirosław <marcin at mejor.pl> wrote:
> Hi!
> I noticed that sheepdog creates pid file very late. E.g.:
> Sep 29 11:46:54   INFO [main] md_add_disk(343)
> /data/sheepdog_storage/obj, vdisk nr 6280, total disk 1
> Sep 29 11:46:55 NOTICE [main] get_local_addr(522) found IPv4 address
> Sep 29 11:46:55   INFO [main] send_join_request(1032) IPv4
> ip:192.168.1.230 port:7000 going to join the cluster
> Sep 29 11:47:06   INFO [main] check_host_env(500) Allowed open files
> 1000000, suggested 6144000
> Sep 29 11:47:06   INFO [main] main(958) sheepdog daemon (version 0.9.2)
> started
> Sep 29 11:47:06  ERROR [nfs] nfs_init_transport(133) svc_register udp,
> failed
>
> Pid was created at:
> $ stat -c %y /run/sheepdog/sheepdog
> 2015-09-29 11:47:06.369753495 +0200
>
> Sheep needed 12 seconds to create pid file, init script wasn't happy
> because it couldn't find pid in 5 seconds (I can configure init scripts
> to wait longer but how long should it wait? 10, 20 seconds?). Is any
> special reason that pidfile can't be created much earlier?

Because sheepdog creates a pid file after initializing its data store
and joining to cluster. These steps can take more than few seconds.
Could you add an issue to our github?

Thanks,
Hitoshi

>
> Marcin
>
> --
> sheepdog-users mailing lists
> sheepdog-users at lists.wpkg.org
> https://lists.wpkg.org/mailman/listinfo/sheepdog-users


More information about the sheepdog-users mailing list