Merge pull request #1628 from mempool/wiz/reduce-production-electrs-loop-time-1s

[ops] Reduce electrs loop time from 5 seconds to 1 second
This commit is contained in:
wiz 2022-05-11 19:01:55 +09:00 committed by GitHub
commit b50f9b4e2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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"