Leo Chen
e1c528e9ff
[prometheus] init pushgateway support
...
* add prometheus.gateway flag support
* instance: peerid
* job: network_type/shard
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
PeekPI
3237f43adc
[RPC] Add javascript engine 'duktape' to tracer module ( #3461 )
...
* add js engine 'duktape' to tracer module
* fixes test error
Co-authored-by: Rongjian Lan <rongjian.lan@gmail.com>
4 years ago
Rongjian Lan
9dba6df985
check lock scope for validator to avoid premature sync check ( #3467 )
4 years ago
Rongjian Lan
d33f47a5fc
use the correct block hash for newview ( #3463 )
...
use the correct block hash for newview
4 years ago
Rongjian Lan
a2c0b18294
Merge pull request #3465 from rlan35/not_return
...
not return early for block proposal
4 years ago
Rongjian Lan
54935817dc
not return early
4 years ago
Leo Chen
392deab76d
[prometheus] enable prometheus config with old toml file ( #3464 )
...
* [prometheus] enable prometheus config with old toml file
* [prometheus] fixed go test
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
37b62bba8a
Merge pull request #3459 from LeoHChen/prometheus_consensus
...
Prometheus consensus
4 years ago
Leo Chen
59847a1fde
[prometheus] make metrics variables private
...
* add UpdateLeaderMetrics func
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
ddc0f7f02f
[prometheus] update validator metrics from node module
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
c28f6c7ca4
[prometheus] add block number gauge
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
c2d37b3822
[prometheus] add consensus metrics
...
* counter of consensus
* finality histogram
* number of signatures
* number of started view change
* number of finished view change
* counter of state syncing
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
22b01a14ab
[consensus] move numSignaturesIncludedInBlock func to consensus
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Daniel Van Der Maden
4608b69365
[Rosetta] Make all side effects one transaction ( #3458 )
...
* [rosetta] Start refactor of side effect transactions
* Rename special transactions to side effect transactions
* Rename various variables for consistancy within context of side effect transasctions
* Remove all individual transaction for side effects, instead start process of batching
all side effects under one transaction.
* Finish batching of genesis side effect transaction.
Signed-off-by: Daniel Van Der Maden <dvandermaden0@berkeley.edu>
* [rosetta] Add `getSideEffectTransaction` & refactor consumers
This will hook in the logic to report all side effects under 1 transactions.
Signed-off-by: Daniel Van Der Maden <dvandermaden0@berkeley.edu>
* [rosetta] Remove genesis logic path for special effect txs
It is not integrated with the normal special effect logic
Signed-off-by: Daniel Van Der Maden <dvandermaden0@berkeley.edu>
* [rosetta] Rename helper fns to use 'side effect'
Replacing special case
Signed-off-by: Daniel Van Der Maden <dvandermaden0@berkeley.edu>
* [rosetta] Fix special case operation index
Signed-off-by: Daniel Van Der Maden <dvandermaden0@berkeley.edu>
* [rosetta] Consolidate side effect operation logic
* Update tests for new side effect logic
Signed-off-by: Daniel Van Der Maden <dvandermaden0@berkeley.edu>
* [rosetta] Fix import
Signed-off-by: Daniel Van Der Maden <dvandermaden0@berkeley.edu>
* [rosetta] Update inline doc
Signed-off-by: Daniel Van Der Maden <dvandermaden0@berkeley.edu>
* [rosetta] Fix comment for /block logic
Signed-off-by: Daniel Van Der Maden <dvandermaden0@berkeley.edu>
4 years ago
Rongjian Lan
60108cd1b5
Merge pull request #3460 from JackyWYX/fix_fbft_log_resource
...
[consensus] add remove fbft log in commitBlock on leader node.
4 years ago
Jacky Wang
71179e70ee
[consensus] remove an unnecessary comment
4 years ago
Jacky Wang
3abec6b768
[consensus] move prune block logic to SetupForNewConsensus
4 years ago
Jacky Wang
356ab98c63
[consensus] add remove fbft log after consensus done on leader node.
4 years ago
Leo Chen
d150f961a0
[prometheus] add node metrics
...
* peerid, node version string
* number of different type of p2p messages
* metrics of node message type
* metrics of consensus message type
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
f4af5c05fc
[node.sh] return ipv4 address only
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
8ce29ed100
Merge pull request #3454 from LeoHChen/prometheus
...
[prometheus] initial support of prometheus metrics
4 years ago
Leo Chen
cc9f435303
[prometheus] add prometheus ip configuration flag
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
d84bb532cb
[prometheus] removed address in use check when starting prometheus
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
4f35ef8dcd
[prometheus] remove local log variable for prometheus service
...
removed getLogger func
fixed consensus getLogger func
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
4b3590ad98
[misc] ignore .hmy/blskeys directory
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
b4af9bffdd
[prometheus] initial support of prometheus metrics
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Rongjian Lan
3c0b2880cc
Merge pull request #3456 from rlan35/main
...
make commit sig timeout longer, also return early for onCommit
4 years ago
Rongjian Lan
36fd9dcb1e
make commit sig timeout longer, also return early for onCommit
4 years ago
Rongjian Lan
037f6222de
Merge pull request #3453 from rlan35/main
...
be more lenient on grace period
4 years ago
Rongjian Lan
2cc6d17a6f
leave some time for finalCommit
4 years ago
Rongjian Lan
a71d8f48f7
leave some time for finalCommit
4 years ago
Rongjian Lan
8aa57bbca5
be more lenient on grace period
4 years ago
Rongjian Lan
d7ba460163
Merge pull request #3452 from rlan35/main
...
Fixes viewID and view change ID base
4 years ago
Rongjian Lan
8d878e575d
Fix viewID in block proposal
4 years ago
Rongjian Lan
8647f69cac
fix log
4 years ago
Rongjian Lan
8821807946
Fixes viewID and view change ID base
4 years ago
Leo Chen
6675aee29a
[viewchange] shorten the viewchange timeout to 27s
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
7bfcfb881c
Merge pull request #3447 from rlan35/main
...
Make finalCommit in the same thread as consensus
4 years ago
Rongjian Lan
2ea0900ca6
Merge pull request #3448 from LeoHChen/viewchange_fix_out_of_sync
...
Viewchange fix out of sync
4 years ago
peekpi
23fd7afa4a
add js engine 'duktape' to tracer module
4 years ago
Leo Chen
1f9a2709b8
[viewchange] fixed gap calculation
...
we switch to use last block view ID from blockchain
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
e891ca68dc
[viewchange] update view ID slower than view change timeout
...
so that node init view change at different timeslot can converge on the
same view ID
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
1e4b55a7cc
[viewchange] check quorum by mask
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
2b5ca833f9
[log] print more log when verification failed
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Rongjian Lan
6d837e5cfe
add missing lock
4 years ago
Rongjian Lan
fa2ab7406b
fix thread
4 years ago
Rongjian Lan
70d7bf1904
Merge branch 'main' of github.com:harmony-one/harmony into main
4 years ago
Rongjian Lan
c334d27b2d
make finalCommit in the same thread as consensus
4 years ago
Rongjian Lan
42e38aa4d7
start timer after sync
4 years ago
Leo Chen
0f02ec9bf1
[viewchange] use last known viewID from blockchain
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago