[ops] Reduce electrs loop time from 5 seconds to 1 second

This commit is contained in:
wiz 2022-05-10 21:52:07 +09:00
parent 6803562daa
commit 8fb41eed44
No known key found for this signature in database
GPG Key ID: A394E332255A6173
6 changed files with 6 additions and 5 deletions

View File

@ -1016,6 +1016,7 @@ osSudo "${BITCOIN_USER}" sh -c "cd ${BITCOIN_ELECTRS_HOME} && cargo run --releas
echo "[*] Patching Bitcoin Electrs code for FreeBSD"
osSudo "${BITCOIN_USER}" sh -c "cd \"${BITCOIN_HOME}/.cargo/registry/src/github.com-1ecc6299db9ec823/sysconf-0.3.4\" && patch -p1 < \"${MEMPOOL_HOME}/${MEMPOOL_REPO_NAME}/production/freebsd/sysconf.patch\""
osSudo "${BITCOIN_USER}" sh -c "cd \"${BITCOIN_ELECTRS_HOME}/src/new_index/\" && sed -i .bak -e s/Snappy/None/ db.rs && rm db.rs.bak"
osSudo "${BITCOIN_USER}" sh -c "cd \"${BITCOIN_ELECTRS_HOME}/src/bin/\" && sed -i .bak -e s/from_secs(5)/from_secs(1)/ electrs.rs && rm electrs.rs.bak"
echo "[*] Building Bitcoin Electrs release binary"
osSudo "${BITCOIN_USER}" sh -c "cd ${BITCOIN_ELECTRS_HOME} && cargo run --release --bin electrs -- --version"

View File

@ -6,7 +6,7 @@
"MINED_BLOCKS_CACHE": 144,
"SPAWN_CLUSTER_PROCS": 0,
"API_URL_PREFIX": "/api/v1/",
"WEBSOCKET_REFRESH_RATE_MS": 2000
"POLL_RATE_MS": 1000
},
"SYSLOG" : {
"MIN_PRIORITY": "debug"

View File

@ -6,7 +6,7 @@
"MINED_BLOCKS_CACHE": 144,
"SPAWN_CLUSTER_PROCS": 0,
"API_URL_PREFIX": "/api/v1/",
"WEBSOCKET_REFRESH_RATE_MS": 2000
"POLL_RATE_MS": 1000
},
"SYSLOG" : {
"MIN_PRIORITY": "debug"

View File

@ -7,7 +7,7 @@
"SPAWN_CLUSTER_PROCS": 0,
"API_URL_PREFIX": "/api/v1/",
"CLEAR_PROTECTION_MINUTES": 5,
"POLL_RATE_MS": 2000,
"POLL_RATE_MS": 1000,
"INDEXING_BLOCKS_AMOUNT": -1,
"USE_SECOND_NODE_FOR_MINFEE": true
},

View File

@ -7,7 +7,7 @@
"SPAWN_CLUSTER_PROCS": 0,
"API_URL_PREFIX": "/api/v1/",
"INDEXING_BLOCKS_AMOUNT": -1,
"POLL_RATE_MS": 2000
"POLL_RATE_MS": 1000
},
"SYSLOG" : {
"MIN_PRIORITY": "debug"

View File

@ -7,7 +7,7 @@
"SPAWN_CLUSTER_PROCS": 0,
"API_URL_PREFIX": "/api/v1/",
"INDEXING_BLOCKS_AMOUNT": -1,
"POLL_RATE_MS": 2000
"POLL_RATE_MS": 1000
},
"SYSLOG" : {
"MIN_PRIORITY": "debug"