bifrost is an application designed to manage two clusters for index replication and snapshot.

To get started with bifrost, follow these steps:
- Copy
envExample.pytoenv.py. - Configure the environment variables in
env.pyto match your setup. - Set up a crontab to automatically run the script in the background.
cp envExample.py env.pyAfter copying the example environment file, open env.py and set your host information accordingly.
Before running bifrost, ensure you have configured the following environment variables in env.py:
Disk usage configuration for source and destination clusters.
Snapshot configuration including path and wait time.
Source cluster information: node address, username, and password.
Destination cluster information: node address, username, password, and snapshot repository.
Ignored indices list.
Alert webhook URL.
Refer to envExample.py for an example configuration.
Once you have set up the environment file, you can run bifrost using Python 3 by executing the opensearch.py script:
python3 opensearch.pyThis will execute the script and perform the necessary tasks to manage your clusters.
To schedule bifrost to run every day at 1 am, you can set up a cron job. Open the crontab file for editing:
crontab -eAdd the following line to the crontab file:
0 1 * * * cd /path/to/project && /usr/bin/python3 opensearch.pyReplace /path/to/project with the actual path to your project directory.
Save and exit the crontab file. This cron job will now change to the project directory and execute your script every day at 1:00 am.
Contributions are welcome! If you have any suggestions, feature requests, or bug reports, please open an issue or submit a pull request.
This project is licensed under the MIT License.