kopia lustrzana https://github.com/bugout-dev/moonstream
Applied CPU Weight
rodzic
5cf74404f9
commit
2cfdc2dc99
|
@ -11,4 +11,5 @@ EnvironmentFile=/home/ubuntu/moonstream-secrets/app.env
|
||||||
ExecStart=/home/ubuntu/moonstream-env/bin/python -m mooncrawl.crawler \
|
ExecStart=/home/ubuntu/moonstream-env/bin/python -m mooncrawl.crawler \
|
||||||
--access-id "${NB_CONTROLLER_ACCESS_ID}" \
|
--access-id "${NB_CONTROLLER_ACCESS_ID}" \
|
||||||
blocks missing --blockchain ethereum -n
|
blocks missing --blockchain ethereum -n
|
||||||
|
CPUWeight=50
|
||||||
SyslogIdentifier=ethereum-missing
|
SyslogIdentifier=ethereum-missing
|
||||||
|
|
|
@ -14,6 +14,7 @@ EnvironmentFile=/home/ubuntu/moonstream-secrets/app.env
|
||||||
ExecStart=/home/ubuntu/moonstream-env/bin/python -m mooncrawl.crawler \
|
ExecStart=/home/ubuntu/moonstream-env/bin/python -m mooncrawl.crawler \
|
||||||
--access-id "${NB_CONTROLLER_ACCESS_ID}" \
|
--access-id "${NB_CONTROLLER_ACCESS_ID}" \
|
||||||
blocks synchronize --blockchain ethereum -c 6 -j 2
|
blocks synchronize --blockchain ethereum -c 6 -j 2
|
||||||
|
CPUWeight=90
|
||||||
SyslogIdentifier=ethereum-synchronize
|
SyslogIdentifier=ethereum-synchronize
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|
|
@ -11,4 +11,5 @@ EnvironmentFile=/home/ubuntu/moonstream-secrets/app.env
|
||||||
ExecStart=/home/ubuntu/moonstream-env/bin/python -m mooncrawl.crawler \
|
ExecStart=/home/ubuntu/moonstream-env/bin/python -m mooncrawl.crawler \
|
||||||
--access-id "${NB_CONTROLLER_ACCESS_ID}" \
|
--access-id "${NB_CONTROLLER_ACCESS_ID}" \
|
||||||
trending
|
trending
|
||||||
|
CPUWeight=30
|
||||||
SyslogIdentifier=ethereum-trending
|
SyslogIdentifier=ethereum-trending
|
||||||
|
|
|
@ -14,6 +14,7 @@ RestartSec=15s
|
||||||
ExecStart=/home/ubuntu/moonstream/crawlers/txpool/txpool \
|
ExecStart=/home/ubuntu/moonstream/crawlers/txpool/txpool \
|
||||||
-blockchain ethereum \
|
-blockchain ethereum \
|
||||||
-access-id "${NB_CONTROLLER_ACCESS_ID}"
|
-access-id "${NB_CONTROLLER_ACCESS_ID}"
|
||||||
|
CPUWeight=30
|
||||||
SyslogIdentifier=ethereum-txpool
|
SyslogIdentifier=ethereum-txpool
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|
|
@ -11,6 +11,7 @@ EnvironmentFile=/home/ubuntu/moonstream-secrets/app.env
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=15s
|
RestartSec=15s
|
||||||
ExecStart=/home/ubuntu/moonworm-env/bin/python -m moonworm.cli watch-cu -w "${MOONSTREAM_POLYGON_WEB3_PROVIDER_URI}?access_id=${NB_CONTROLLER_ACCESS_ID}&data_source=blockchain" -c 0xdC0479CC5BbA033B3e7De9F178607150B3AbCe1f -d 21418707 --confirmations 60
|
ExecStart=/home/ubuntu/moonworm-env/bin/python -m moonworm.cli watch-cu -w "${MOONSTREAM_POLYGON_WEB3_PROVIDER_URI}?access_id=${NB_CONTROLLER_ACCESS_ID}&data_source=blockchain" -c 0xdC0479CC5BbA033B3e7De9F178607150B3AbCe1f -d 21418707 --confirmations 60
|
||||||
|
CPUWeight=70
|
||||||
SyslogIdentifier=moonworm-unicorns-mainnet
|
SyslogIdentifier=moonworm-unicorns-mainnet
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|
|
@ -11,4 +11,5 @@ EnvironmentFile=/home/ubuntu/moonstream-secrets/app.env
|
||||||
ExecStart=/home/ubuntu/moonstream-env/bin/python -m mooncrawl.crawler \
|
ExecStart=/home/ubuntu/moonstream-env/bin/python -m mooncrawl.crawler \
|
||||||
--access-id "${NB_CONTROLLER_ACCESS_ID}" \
|
--access-id "${NB_CONTROLLER_ACCESS_ID}" \
|
||||||
blocks missing --blockchain polygon -n
|
blocks missing --blockchain polygon -n
|
||||||
|
CPUWeight=50
|
||||||
SyslogIdentifier=polygon-missing
|
SyslogIdentifier=polygon-missing
|
||||||
|
|
|
@ -14,6 +14,7 @@ RestartSec=15s
|
||||||
ExecStart=/home/ubuntu/moonstream-env/bin/python -m mooncrawl.moonworm_crawler.cli \
|
ExecStart=/home/ubuntu/moonstream-env/bin/python -m mooncrawl.moonworm_crawler.cli \
|
||||||
--access-id "${NB_CONTROLLER_ACCESS_ID}" \
|
--access-id "${NB_CONTROLLER_ACCESS_ID}" \
|
||||||
crawl -b polygon
|
crawl -b polygon
|
||||||
|
CPUWeight=70
|
||||||
SyslogIdentifier=polygon-moonworm-crawler
|
SyslogIdentifier=polygon-moonworm-crawler
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|
|
@ -11,4 +11,5 @@ EnvironmentFile=/home/ubuntu/moonstream-secrets/app.env
|
||||||
ExecStart=/home/ubuntu/moonstream-env/bin/python -m mooncrawl.stats_worker.dashboard \
|
ExecStart=/home/ubuntu/moonstream-env/bin/python -m mooncrawl.stats_worker.dashboard \
|
||||||
--access-id "${NB_CONTROLLER_ACCESS_ID}" \
|
--access-id "${NB_CONTROLLER_ACCESS_ID}" \
|
||||||
generate --blockchain polygon
|
generate --blockchain polygon
|
||||||
|
CPUWeight=60
|
||||||
SyslogIdentifier=polygon-statistics
|
SyslogIdentifier=polygon-statistics
|
||||||
|
|
|
@ -14,6 +14,7 @@ EnvironmentFile=/home/ubuntu/moonstream-secrets/app.env
|
||||||
ExecStart=/home/ubuntu/moonstream-env/bin/python -m mooncrawl.crawler \
|
ExecStart=/home/ubuntu/moonstream-env/bin/python -m mooncrawl.crawler \
|
||||||
--access-id "${NB_CONTROLLER_ACCESS_ID}" \
|
--access-id "${NB_CONTROLLER_ACCESS_ID}" \
|
||||||
blocks synchronize --blockchain polygon -c 60 -j 2
|
blocks synchronize --blockchain polygon -c 60 -j 2
|
||||||
|
CPUWeight=90
|
||||||
SyslogIdentifier=polygon-synchronize
|
SyslogIdentifier=polygon-synchronize
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|
|
@ -14,6 +14,7 @@ RestartSec=15s
|
||||||
ExecStart=/home/ubuntu/moonstream/crawlers/txpool/txpool \
|
ExecStart=/home/ubuntu/moonstream/crawlers/txpool/txpool \
|
||||||
-blockchain polygon \
|
-blockchain polygon \
|
||||||
-access-id "${NB_CONTROLLER_ACCESS_ID}"
|
-access-id "${NB_CONTROLLER_ACCESS_ID}"
|
||||||
|
CPUWeight=30
|
||||||
SyslogIdentifier=polygon-txpool
|
SyslogIdentifier=polygon-txpool
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|
|
@ -11,4 +11,5 @@ EnvironmentFile=/home/ubuntu/moonstream-secrets/app.env
|
||||||
ExecStart=/home/ubuntu/moonstream-env/bin/python -m mooncrawl.crawler \
|
ExecStart=/home/ubuntu/moonstream-env/bin/python -m mooncrawl.crawler \
|
||||||
--access-id "${NB_CONTROLLER_ACCESS_ID}" \
|
--access-id "${NB_CONTROLLER_ACCESS_ID}" \
|
||||||
blocks missing --blockchain xdai -n
|
blocks missing --blockchain xdai -n
|
||||||
|
CPUWeight=50
|
||||||
SyslogIdentifier=xdai-missing
|
SyslogIdentifier=xdai-missing
|
|
@ -14,6 +14,7 @@ RestartSec=15s
|
||||||
ExecStart=/home/ubuntu/moonstream-env/bin/python -m mooncrawl.moonworm_crawler.cli \
|
ExecStart=/home/ubuntu/moonstream-env/bin/python -m mooncrawl.moonworm_crawler.cli \
|
||||||
--access-id "${NB_CONTROLLER_ACCESS_ID}" \
|
--access-id "${NB_CONTROLLER_ACCESS_ID}" \
|
||||||
crawl -b xdai --start 21704746
|
crawl -b xdai --start 21704746
|
||||||
|
CPUWeight=70
|
||||||
SyslogIdentifier=xdai-moonworm-crawler
|
SyslogIdentifier=xdai-moonworm-crawler
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|
|
@ -11,4 +11,5 @@ EnvironmentFile=/home/ubuntu/moonstream-secrets/app.env
|
||||||
ExecStart=/home/ubuntu/moonstream-env/bin/python -m mooncrawl.stats_worker.dashboard \
|
ExecStart=/home/ubuntu/moonstream-env/bin/python -m mooncrawl.stats_worker.dashboard \
|
||||||
--access-id "${NB_CONTROLLER_ACCESS_ID}" \
|
--access-id "${NB_CONTROLLER_ACCESS_ID}" \
|
||||||
generate --blockchain xdai
|
generate --blockchain xdai
|
||||||
|
CPUWeight=60
|
||||||
SyslogIdentifier=xdai-statistics
|
SyslogIdentifier=xdai-statistics
|
||||||
|
|
|
@ -14,6 +14,7 @@ EnvironmentFile=/home/ubuntu/moonstream-secrets/app.env
|
||||||
ExecStart=/home/ubuntu/moonstream-env/bin/python -m mooncrawl.crawler \
|
ExecStart=/home/ubuntu/moonstream-env/bin/python -m mooncrawl.crawler \
|
||||||
--access-id "${NB_CONTROLLER_ACCESS_ID}" \
|
--access-id "${NB_CONTROLLER_ACCESS_ID}" \
|
||||||
blocks synchronize --blockchain xdai -c 60 -j 2
|
blocks synchronize --blockchain xdai -c 60 -j 2
|
||||||
|
CPUWeight=90
|
||||||
SyslogIdentifier=xdai-synchronize
|
SyslogIdentifier=xdai-synchronize
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|
|
@ -17,6 +17,7 @@ export NFT_HUMBUG_TOKEN="<Token_for_nft_crawler>"
|
||||||
# Blockchain nodes environment variables
|
# Blockchain nodes environment variables
|
||||||
export MOONSTREAM_ETHEREUM_WEB3_PROVIDER_URI="https://<connection_path_uri_to_ethereum_node>"
|
export MOONSTREAM_ETHEREUM_WEB3_PROVIDER_URI="https://<connection_path_uri_to_ethereum_node>"
|
||||||
export MOONSTREAM_POLYGON_WEB3_PROVIDER_URI="https://<connection_path_uri_to_polygon_node>"
|
export MOONSTREAM_POLYGON_WEB3_PROVIDER_URI="https://<connection_path_uri_to_polygon_node>"
|
||||||
|
export MOONSTREAM_XDAI_WEB3_PROVIDER_URI="https://<connection_path_uri_to_xdai_node>"
|
||||||
export NB_CONTROLLER_ACCESS_ID="<access_uuid_for_moonstream_nodebalancer>"
|
export NB_CONTROLLER_ACCESS_ID="<access_uuid_for_moonstream_nodebalancer>"
|
||||||
|
|
||||||
# AWS environment variables
|
# AWS environment variables
|
||||||
|
|
Ładowanie…
Reference in New Issue