This is the final alpha version the version 1.0.
The system now can be installed in the virtualenv just typing
pip install pg_chameleon
It's important pip is up to date so if there's any error upgrade pip with
pip install pip --upgrade
The first install creates in the user's home the directory .pg_chameleon with 4 subdirectories.
- config is where the configuration files are stored. Use config-example.yaml as template for the other configuration files. If you have already a config file from a previous test you can copy there and the system should work. You will need to update the paths of logs and pid directories. The previous values with relative paths will no longer work. You can use either use an absolute path or provide the home alias ~. Check the config-example.yaml for the latter configuration.
- pid is where the replica pid is created. it can be changed in the configuration file.
- logs is where the replication logs are created. it can be changed in the configuration file
- sql stores the sql service files and upgrade files, you can ignore it
It's also possible to install pg_chameleon system wide (if you have root privileges). In that case the user's directory is not created. An example structure is put in /usr/local/etc/pg_chameleon.
You should copy the directory in the user's home dir (with the . prefix).
Using directly the general directory is not a good idea for security reasons.
The wrapper script which becomes chameleon.py.
Usage and examples in the documents.
pypi: https://pypi.python.org/pypi/pg_chameleon/1.0a4
github: https://github.com/the4thdoctor/pg_chameleon
documentation: http://pg-chameleon.readthedocs.io/en/v1.0-alpha.4/
Please test!
Thank you.
No comments:
Post a Comment