Skip to content
This repository has been archived by the owner on Nov 9, 2020. It is now read-only.

Investigate possibility to use systemd to manage ETCD services #1873

Closed
luomiao opened this issue Sep 7, 2017 · 2 comments
Closed

Investigate possibility to use systemd to manage ETCD services #1873

luomiao opened this issue Sep 7, 2017 · 2 comments

Comments

@luomiao
Copy link
Contributor

luomiao commented Sep 7, 2017

Currently vFile plugin manage ETCD services by os/exec and Process.Kill():

        cmd := exec.Command("/bin/etcd", lines...)
        err := cmd.Start()
        // stop ETCD process
        if err := e.etcdCMD.Process.Kill(); err != nil {
                log.Errorf("Failed to stop ETCD process. Error: %v", err)
                return
        }

This requires the plugin to handle the ETCD data directory clean up and so on.
Using systemd to manage ETCD services should be able to achieve better resource allocation automatically.

@luomiao luomiao changed the title vFile: use systemd to manage ETCD services Investigate possibility to use systemd to manage ETCD services Sep 28, 2017
@luomiao luomiao added this to the Sprint - Ironman milestone Sep 28, 2017
@shuklanirdesh82
Copy link
Contributor

mustfix for atleast investigation task

@luomiao
Copy link
Contributor Author

luomiao commented Oct 18, 2017

docker plugins are using alpine as the base image. Alpine uses openRC to start init services. OpenRC uses shell scripts to start ETCD. In this case, there is no difference to start ETCD as a process. Furthermore we will have the ETCD data-dir be persistent after node is rebooted. Thus there is no need to start ETCD as an init service.

@luomiao luomiao closed this as completed Oct 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants