This repository has been archived by the owner on Jun 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1902 from LiskHQ/1900-lisk-service-performance-is…
…sues Lisk service performance issues
- Loading branch information
Showing
77 changed files
with
566 additions
and
517 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -391,9 +391,9 @@ Only to be used when the genesis block is large enough to be transmitted over AP | |
| `ENABLE_BLOCK_CACHING` | ||
| boolean | ||
| Boolean flag to enable block caching. | ||
Enabled by default. | ||
To disable it, set it to `false`. | ||
| true | ||
Disabled by default. | ||
To enable it, set it to `true`. | ||
| false | ||
|
||
| `EXPIRY_IN_HOURS` | ||
| number | ||
|
@@ -698,6 +698,12 @@ By default, it is set to run every 15 minutes. | |
By default, it is set to `0`. | ||
| 0 | ||
|
||
| `ACCOUNT_BALANCE_UPDATE_BATCH_SIZE` | ||
| number | ||
| Number of accounts for which the balance index is updated at a time. | ||
By default, it is set to `1000`. | ||
| 1000 | ||
|
||
| `MAINCHAIN_SERVICE_URL` | ||
| string | ||
| Mainchain service URL for custom deployments. | ||
|
@@ -722,6 +728,11 @@ To accelerate the indexing process, the blockchain-indexer microservice also sup | |
|Enable or disable auto-apply snapshot feature. By default, the value is false. | ||
|false | ||
|
||
|`DURABILITY_VERIFY_FREQUENCY` | ||
|number | ||
|Frequency in milliseconds to verify if a block is indexed or rolled-back successfully. By default, it is set to 20. | ||
|false | ||
|
||
|`INDEX_SNAPSHOT_URL` | ||
|string | ||
|Custom snapshot download URL (expected to end with sql.gz). | ||
|
@@ -756,6 +767,7 @@ module.exports = { | |
ENABLE_INDEXING_MODE: 'true', | ||
ENABLE_PERSIST_EVENTS: 'false', | ||
// ENABLE_APPLY_SNAPSHOT: 'false', | ||
// DURABILITY_VERIFY_FREQUENCY: 20, | ||
// INDEX_SNAPSHOT_URL: '', | ||
// ENABLE_SNAPSHOT_ALLOW_INSECURE_HTTP: 'true', | ||
// SERVICE_INDEXER_MYSQL_READ_REPLICA: 'mysql://lisk:[email protected]:3306/lisk', | ||
|
@@ -770,6 +782,7 @@ module.exports = { | |
// LISK_STATIC: 'https://static-data.lisk.com', | ||
// DEVNET_MAINCHAIN_URL: 'http://devnet-service.liskdev.net:9901', | ||
// ESTIMATES_BUFFER_BYTES_LENGTH: 0, | ||
// ACCOUNT_BALANCE_UPDATE_BATCH_SIZE: 1000, | ||
// JOB_INTERVAL_DELETE_SERIALIZED_EVENTS: 0, | ||
// JOB_SCHEDULE_DELETE_SERIALIZED_EVENTS: '*/5 * * * *', | ||
// JOB_INTERVAL_REFRESH_VALIDATORS: 0, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ Mona Bärenfänger <[email protected]> | |
|
||
.Inside the lisk-service root folder | ||
---- | ||
make build | ||
make build-images | ||
---- | ||
This creates the necessary Docker images to start Lisk Service in the containers. | ||
|
||
|
@@ -348,7 +348,7 @@ git checkout v0.7.0 | |
. Build the required updated Docker images | ||
+ | ||
---- | ||
make build | ||
make build-images | ||
---- | ||
. Start Lisk Service in the containers | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -156,6 +156,7 @@ module.exports = { | |
ENABLE_INDEXING_MODE: true, | ||
ENABLE_PERSIST_EVENTS: false, | ||
// ENABLE_APPLY_SNAPSHOT: false, | ||
// DURABILITY_VERIFY_FREQUENCY: 20, | ||
// INDEX_SNAPSHOT_URL: '', | ||
// ENABLE_SNAPSHOT_ALLOW_INSECURE_HTTP: true, | ||
// SERVICE_INDEXER_MYSQL_READ_REPLICA: 'mysql://lisk:[email protected]:3306/lisk', | ||
|
@@ -170,6 +171,7 @@ module.exports = { | |
// LISK_STATIC: 'https://static-data.lisk.com', | ||
// DEVNET_MAINCHAIN_URL: 'http://devnet-service.liskdev.net:9901', | ||
// ESTIMATES_BUFFER_BYTES_LENGTH: 0, | ||
// ACCOUNT_BALANCE_UPDATE_BATCH_SIZE: 1000, | ||
// JOB_INTERVAL_DELETE_SERIALIZED_EVENTS: 0, | ||
// JOB_SCHEDULE_DELETE_SERIALIZED_EVENTS: '*/5 * * * *', | ||
// JOB_INTERVAL_REFRESH_VALIDATORS: 0, | ||
|
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.