diff --git a/crawlers/deploy/ethereum-missing.service b/crawlers/deploy/ethereum-missing.service index c52eb23b..07f271ad 100644 --- a/crawlers/deploy/ethereum-missing.service +++ b/crawlers/deploy/ethereum-missing.service @@ -8,4 +8,5 @@ User=ubuntu Group=www-data 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 ethereum -n \ No newline at end of file +ExecStart=/home/ubuntu/moonstream-env/bin/python -m mooncrawl.crawler blocks missing --blockchain ethereum -n +SyslogIdentifier=ethereum-missing diff --git a/crawlers/deploy/ethereum-trending.service b/crawlers/deploy/ethereum-trending.service index 1bb59d79..fa7b3b1f 100644 --- a/crawlers/deploy/ethereum-trending.service +++ b/crawlers/deploy/ethereum-trending.service @@ -8,4 +8,5 @@ User=ubuntu Group=www-data WorkingDirectory=/home/ubuntu/moonstream/crawlers/mooncrawl EnvironmentFile=/home/ubuntu/moonstream-secrets/app.env -ExecStart=/home/ubuntu/moonstream-env/bin/python -m mooncrawl.crawler trending \ No newline at end of file +ExecStart=/home/ubuntu/moonstream-env/bin/python -m mooncrawl.crawler trending +SyslogIdentifier=ethereum-trending diff --git a/crawlers/deploy/ethereum-txpool.service b/crawlers/deploy/ethereum-txpool.service index d4221a6f..3c584ce6 100644 --- a/crawlers/deploy/ethereum-txpool.service +++ b/crawlers/deploy/ethereum-txpool.service @@ -1,12 +1,16 @@ [Unit] Description=Ethereum txpool crawler After=network.target +StartLimitIntervalSec=300 +StartLimitBurst=3 [Service] User=ubuntu Group=www-data WorkingDirectory=/home/ubuntu/moonstream/crawlers/txpool EnvironmentFile=/home/ubuntu/moonstream-secrets/app.env +Restart=on-failure +RestartSec=15s ExecStart=/home/ubuntu/moonstream/crawlers/txpool/txpool -blockchain ethereum SyslogIdentifier=ethereum-txpool diff --git a/crawlers/deploy/polygon-missing.service b/crawlers/deploy/polygon-missing.service index 2b90adcb..3bd873e7 100644 --- a/crawlers/deploy/polygon-missing.service +++ b/crawlers/deploy/polygon-missing.service @@ -8,4 +8,5 @@ User=ubuntu Group=www-data 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 polygon -n \ No newline at end of file +ExecStart=/home/ubuntu/moonstream-env/bin/python -m mooncrawl.crawler blocks missing --blockchain polygon -n +SyslogIdentifier=polygon-missing diff --git a/crawlers/deploy/polygon-statistics.service b/crawlers/deploy/polygon-statistics.service index 9ad0585a..d82eae9e 100644 --- a/crawlers/deploy/polygon-statistics.service +++ b/crawlers/deploy/polygon-statistics.service @@ -9,3 +9,4 @@ Group=www-data WorkingDirectory=/home/ubuntu/moonstream/crawlers/mooncrawl EnvironmentFile=/home/ubuntu/moonstream-secrets/app.env ExecStart=/home/ubuntu/moonstream-env/bin/python -m mooncrawl.stats_worker.dashboard generate --blockchain polygon +SyslogIdentifier=polygon-statistics diff --git a/crawlers/deploy/polygon-txpool.service b/crawlers/deploy/polygon-txpool.service index cf4dae92..a2d3a728 100644 --- a/crawlers/deploy/polygon-txpool.service +++ b/crawlers/deploy/polygon-txpool.service @@ -1,12 +1,16 @@ [Unit] Description=Polygon txpool crawler After=network.target +StartLimitIntervalSec=300 +StartLimitBurst=3 [Service] User=ubuntu Group=www-data WorkingDirectory=/home/ubuntu/moonstream/crawlers/txpool EnvironmentFile=/home/ubuntu/moonstream-secrets/app.env +Restart=on-failure +RestartSec=15s ExecStart=/home/ubuntu/moonstream/crawlers/txpool/txpool -blockchain polygon SyslogIdentifier=polygon-txpool diff --git a/nodes/deploy/node-balancer.service b/nodes/deploy/node-balancer.service index 9402b8e1..908fc99f 100644 --- a/nodes/deploy/node-balancer.service +++ b/nodes/deploy/node-balancer.service @@ -15,4 +15,4 @@ ExecStart=/home/ubuntu/moonstream/nodes/node_balancer/nodebalancer -host "${AWS_ SyslogIdentifier=node-balancer [Install] -WantedBy=multi-user.target \ No newline at end of file +WantedBy=multi-user.target