mirror of
https://github.com/0x1d/drift-keeper.git
synced 2025-12-15 18:58:21 +01:00
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:
24
ansible/app-configure.yaml
Normal file
24
ansible/app-configure.yaml
Normal 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
9
ansible/app-reset.yaml
Normal 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
10
ansible/app-upgrade.yaml
Normal 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
|
||||
6
ansible/system-reboot.yaml
Normal file
6
ansible/system-reboot.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
- hosts: bots
|
||||
remote_user: root
|
||||
become: true
|
||||
tasks:
|
||||
- name: Reboot
|
||||
reboot:
|
||||
10
ansible/system-upgrade.yaml
Normal file
10
ansible/system-upgrade.yaml
Normal 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:
|
||||
Reference in New Issue
Block a user