-
Notifications
You must be signed in to change notification settings - Fork 449
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation specifying where configuration parameters are stored would make migrating systems much easier! #257
Comments
MOAR DIGGING: So pghero seems to generate a BUNCH of systemd unit files for ~~reasons~~:
Experimentally moving that line to the new configuration makes the space tab start working.
|
OTOH, the duplicate indexes thing is awesome (and holy potatoes, I have a bunch of duplicate indexes). I'm not sure why my previous install wasn't seeing them, as far as I know it should have been updating itself. |
Hey @fake-name, I think the easiest way to migrate is:
|
The issue was I didn't have any ENV variables (and even if I did, how would something in my Basically, I think the issue here is "why is there both a |
Hey @fake-name, with the next release, you'll be able to configure everything in |
I've been writing an ansible playbook for deploying a web service that I want to use pghero with & am wondering if these changes are included in v2.4.1 & where the |
Hey @prikhi, v2.4.1 includes the changes and the file can be placed at |
However, I'd use the official command to set it rather than placing it there directly. https://github.com/ankane/pghero/blob/master/guides/Linux.md#multiple-databases cat pghero.yml | sudo pghero run sh -c "cat > config/pghero.yml" |
Basically, I'm trying to migrate a pghero install from a vm into a container.
I'd like to be able to just copy a single config file across (or maybe a directory), but it seems that's not currently possible.
So far, to simply move machines:
pghero.yml
across.sudo service pghero restart
- Service is maskedsudo pghero scale web=1
apparently actually installs the service handlers.sudo service pghero restart
- It works this timeQuery stats are configured via
PGHERO_STATS_DATABASE_URL
, but that doesn't seem to affect the config file, and I have no idea where the value you specify to it is going.Basically, I think I'm proposing that you have one config file (or a directory of config files), and all config stuff is stored there. Right now, it appears to be scattered around in lots of places, and that makes migrating a config basically impossible.
The text was updated successfully, but these errors were encountered: