Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 649320 - Fix elasticsearch init script in packages
Summary: Fix elasticsearch init script in packages
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Other web server issues (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Packages Website
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-02 02:27 UTC by Alec Warner
Modified: 2020-05-26 07:48 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alec Warner (RETIRED) archtester gentoo-dev Security 2018-03-02 02:27:38 UTC
We want elasticsearch to autorestart. Previously we configured docker to do this (via docker run auto restart) but this confused openrc because when docker restarted ES the pidfile would change.

Figure out some solution that is longer term and makes both things happy.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2018-03-02 05:44:40 UTC
antarus: on what frequency do the restarts need to be? is there an option that has an init system in the container to restart it vs restarting the entire container?
Comment 2 Alec Warner (RETIRED) archtester gentoo-dev Security 2018-03-02 13:23:12 UTC
(In reply to Robin Johnson from comment #1)
> antarus: on what frequency do the restarts need to be? is there an option
> that has an init system in the container to restart it vs restarting the
> entire container?

So I see three use cases, perhaps they both are fixed in the current config and we can do nothing (mostly because fixing openrc is very expensive.)

1) Update the config. The config is in the init script, so a "config update" is basically docker stop + docker run, the latter with any updated config options.

2) Update the software. This is a manual operation, and we don't update often so I care less about this use case for packages.

3) Keep it running.

Puppet does 3; albeit with a delay. Perhaps the delay is sufficient. Lets let time tell.

2 doesn't matter because we don't do it and we currently expect a human to do it anyway.

The current implementation of 1 requires a docker stop / docker run (because docker run is the thing tweaking the config.) This actually works fine today because with restarts off, openrc can track the docker run invocation; so "restart" works. I suspect "reload" doesn't; we may want to check to see what puppet does in this case on a refresh event to call the right one.
Comment 3 Alec Warner (RETIRED) archtester gentoo-dev Security 2020-05-26 07:48:07 UTC
We don't run ES on this anymore.