Multi-Cloud Deployment (#1)

* Introduce instances list to scale bots and add config templating

* Use env var for wallet address if not provided as path param

* Expose SOL price as metric

* Update docs

* Add auto-swap

* Add Panopticon

* implement backoff stategy in autoswap

* Add retry logic for withdraw and swap

* bump drift-sdk, update ctl.sh and docs

* Update filler bot, add tx metrics

* Add user-metrics

* Update build and dashboard
This commit is contained in:
Patrick Balsiger
2024-04-28 07:25:08 +02:00
committed by GitHub
parent 6bd2c3367b
commit f05fac48ca
58 changed files with 9783 additions and 319 deletions

View File

@@ -0,0 +1,24 @@
- hosts: bots
remote_user: root
become: true
tasks:
- name: Stop Containers
shell: |
cd /app/bot
docker-compose down
- name: Configure Grafana
copy:
src: ../grafana
dest: /app/bot
#- name: Configure Prometheus
# copy:
# src: ../prometheus
# dest: /app/bot
#- name: Configure Bot
# copy:
# src: ../config.yaml
# dest: /app/bot
- name: Start Containers
shell: |
cd /app/bot
sudo -u keeper -g bot -- docker-compose up -d

9
ansible/app-reset.yaml Normal file
View File

@@ -0,0 +1,9 @@
- hosts: bots
remote_user: root
become: true
tasks:
- name: Reset Containers
shell: |
cd /app/bot
docker-compose down -v
sudo -u keeper -g bot -- docker-compose up -d

10
ansible/app-upgrade.yaml Normal file
View File

@@ -0,0 +1,10 @@
- hosts: bots
remote_user: root
become: true
tasks:
- name: Upgrade Containers
shell: |
cd /app/bot
docker-compose down
docker-compose pull
sudo -u keeper -g bot -- docker-compose up -d

View File

@@ -0,0 +1,6 @@
- hosts: bots
remote_user: root
become: true
tasks:
- name: Reboot
reboot:

View File

@@ -0,0 +1,10 @@
- hosts: bots
remote_user: root
become: true
tasks:
- name: Upgrade System
shell: |
apt update
apt upgrade -y
- name: Reboot
reboot: