Bug 1213796
| Summary: | systemd integration with glusterfs | ||
|---|---|---|---|
| Product: | [Community] GlusterFS | Reporter: | Sachidananda Urs <surs> |
| Component: | glusterd | Assignee: | Atin Mukherjee <amukherj> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | mainline | CC: | amukherj, bugs, ndevos, surs |
| Target Milestone: | --- | Keywords: | Triaged |
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-10-08 02:13:27 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Sachidananda Urs
2015-04-21 10:24:05 UTC
[root@localhost system]# cat glusterd.socket [Unit] Description=glusterd server socket [Socket] ListenStream=24007 ListenStream=/var/run/glusterd.socket Accept=no [Install] WantedBy=sockets.target [root@localhost system]# ==================================================================== [root@localhost system]# cat glusterd.service [Unit] Description=glusterd - Gluster elastic volume management daemon Documentation=man:glusterd(8) After=network.target Wants=network-online.target Wants=syslog.target [Service] Type=forking PIDFile=/var/run/glusterd.pid LimitNOFILE=65536 ExecStart=/usr/local/sbin/glusterd -p /var/run/glusterd.pid KillMode=process [Install] WantedBy=multi-user.target [root@localhost system]# I am not sure if socket activation makes a lot of sense here. Gluster clients may already know what bricks are available. When a Gluster Server reboots, glusterd should start the brick processes. When socket activation is used, glusterd will only start after a connection on the socket (unix socket or tcp port) is detected. I think gluster clients can try to connect to the brick processes without touching any of the glusterd sockets. What is the use-case you are trying to solve here? GlusterD would anyway start upon reboot. The usecase here is... admin/user has the privilege to enable and start glusterd.socket (on need by basis) and not be bothered about restarting glusterd (In case the process gets killed due to crash or OOM kill or by any other means)... it does get automatically started by next vol info or any other volume command. Failure does not go unnoticed, it is handled by systemd for further diagnosis. Of course we have to document about not using this feature while using quorum. I am not (yet) convinces this is the right approach. If restarting glusterd after a failure is needed, we can add a Restart=... option to the glusterd.service file. See 'man systemd.service' for more details. Restarting on a crash/OOM might not be a good idea in general, it can well be that something is horribly wrong, and restarting does not give a guarantee that the whole system recovers and becomes usable again. Yep agree with the `Restart=' option. This is more of an on-demand activation. More of a good to have feature. Sac - I believe that this BZ is just hanging over with out any activity. In GD1, we're not looking to take this enhancement. I'd suggest to close this bug. (In reply to Atin Mukherjee from comment #6) > Sac - I believe that this BZ is just hanging over with out any activity. In > GD1, we're not looking to take this enhancement. I'd suggest to close this > bug. Ack! We can close this bug. |