diff --git a/crawlers/deploy/avalanche-fuji-missing.service b/crawlers/deploy/avalanche-fuji-missing.service new file mode 100644 index 00000000..6013fece --- /dev/null +++ b/crawlers/deploy/avalanche-fuji-missing.service @@ -0,0 +1,11 @@ +[Unit] +Description=Fill missing blocks at Avalanche Fuji database +After=network.target + +[Service] +Type=oneshot +WorkingDirectory=/home/ubuntu/moonstream/crawlers/mooncrawl +EnvironmentFile=/home/ubuntu/moonstream-secrets/app.env +ExecStart=/home/ubuntu/moonstream-env/bin/python -m mooncrawl.crawler blocks missing --blockchain avalanche_fuji -n +CPUWeight=50 +SyslogIdentifier=avalanche-fuji-missing \ No newline at end of file diff --git a/crawlers/deploy/avalanche-fuji-missing.timer b/crawlers/deploy/avalanche-fuji-missing.timer new file mode 100644 index 00000000..03a4a567 --- /dev/null +++ b/crawlers/deploy/avalanche-fuji-missing.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Fill missing blocks at Avalanche Fuji database + +[Timer] +OnBootSec=120s +OnUnitActiveSec=15m + +[Install] +WantedBy=timers.target diff --git a/crawlers/deploy/avalanche-fuji-moonworm-crawler.service b/crawlers/deploy/avalanche-fuji-moonworm-crawler.service new file mode 100644 index 00000000..5c88328b --- /dev/null +++ b/crawlers/deploy/avalanche-fuji-moonworm-crawler.service @@ -0,0 +1,17 @@ +[Unit] +Description=Avalanche Fuji moonworm crawler +After=network.target +StartLimitIntervalSec=300 +StartLimitBurst=3 + +[Service] +WorkingDirectory=/home/ubuntu/moonstream/crawlers/mooncrawl +EnvironmentFile=/home/ubuntu/moonstream-secrets/app.env +Restart=on-failure +RestartSec=15s +ExecStart=/home/ubuntu/moonstream-env/bin/python -m mooncrawl.moonworm_crawler.cli crawl -b avalanche_fuji --confirmations 10 --min-blocks-batch 20 +CPUWeight=70 +SyslogIdentifier=avalanche-fuji-moonworm-crawler + +[Install] +WantedBy=multi-user.target \ No newline at end of file diff --git a/crawlers/deploy/avalanche-fuji-synchronize.service b/crawlers/deploy/avalanche-fuji-synchronize.service new file mode 100644 index 00000000..dc960e65 --- /dev/null +++ b/crawlers/deploy/avalanche-fuji-synchronize.service @@ -0,0 +1,17 @@ +[Unit] +Description=Avalanche Fuji block with transactions synchronizer +StartLimitIntervalSec=300 +StartLimitBurst=3 +After=network.target + +[Service] +Restart=on-failure +RestartSec=15s +WorkingDirectory=/home/ubuntu/moonstream/crawlers/mooncrawl +EnvironmentFile=/home/ubuntu/moonstream-secrets/app.env +ExecStart=/home/ubuntu/moonstream-env/bin/python -m mooncrawl.crawler blocks synchronize --blockchain avalanche_fuji -c 10 -j 2 +CPUWeight=90 +SyslogIdentifier=avalanche-fuji-synchronize + +[Install] +WantedBy=multi-user.target \ No newline at end of file diff --git a/crawlers/deploy/avalanche-missing.service b/crawlers/deploy/avalanche-missing.service new file mode 100644 index 00000000..b847a107 --- /dev/null +++ b/crawlers/deploy/avalanche-missing.service @@ -0,0 +1,11 @@ +[Unit] +Description=Fill missing blocks at Avalanche database +After=network.target + +[Service] +Type=oneshot +WorkingDirectory=/home/ubuntu/moonstream/crawlers/mooncrawl +EnvironmentFile=/home/ubuntu/moonstream-secrets/app.env +ExecStart=/home/ubuntu/moonstream-env/bin/python -m mooncrawl.crawler blocks missing --blockchain avalanche -n +CPUWeight=50 +SyslogIdentifier=avalanche-missing \ No newline at end of file diff --git a/crawlers/deploy/avalanche-missing.timer b/crawlers/deploy/avalanche-missing.timer new file mode 100644 index 00000000..182f7e89 --- /dev/null +++ b/crawlers/deploy/avalanche-missing.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Fill missing blocks at Avalanche database + +[Timer] +OnBootSec=120s +OnUnitActiveSec=15m + +[Install] +WantedBy=timers.target diff --git a/crawlers/deploy/avalanche-moonworm-crawler.service b/crawlers/deploy/avalanche-moonworm-crawler.service new file mode 100644 index 00000000..fc5f9c7c --- /dev/null +++ b/crawlers/deploy/avalanche-moonworm-crawler.service @@ -0,0 +1,17 @@ +[Unit] +Description=Avalanche moonworm crawler +After=network.target +StartLimitIntervalSec=300 +StartLimitBurst=3 + +[Service] +WorkingDirectory=/home/ubuntu/moonstream/crawlers/mooncrawl +EnvironmentFile=/home/ubuntu/moonstream-secrets/app.env +Restart=on-failure +RestartSec=15s +ExecStart=/home/ubuntu/moonstream-env/bin/python -m mooncrawl.moonworm_crawler.cli crawl -b avalanche --confirmations 10 --min-blocks-batch 20 +CPUWeight=70 +SyslogIdentifier=avalanche-moonworm-crawler + +[Install] +WantedBy=multi-user.target \ No newline at end of file diff --git a/crawlers/deploy/avalanche-synchronize.service b/crawlers/deploy/avalanche-synchronize.service new file mode 100644 index 00000000..54a77588 --- /dev/null +++ b/crawlers/deploy/avalanche-synchronize.service @@ -0,0 +1,17 @@ +[Unit] +Description=Avalanche block with transactions synchronizer +StartLimitIntervalSec=300 +StartLimitBurst=3 +After=network.target + +[Service] +Restart=on-failure +RestartSec=15s +WorkingDirectory=/home/ubuntu/moonstream/crawlers/mooncrawl +EnvironmentFile=/home/ubuntu/moonstream-secrets/app.env +ExecStart=/home/ubuntu/moonstream-env/bin/python -m mooncrawl.crawler blocks synchronize --blockchain avalanche -c 10 -j 2 +CPUWeight=90 +SyslogIdentifier=avalanche-synchronize + +[Install] +WantedBy=multi-user.target \ No newline at end of file