Leo Chen
74971b63b9
[config] disable beacon archival by default
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
4a0553fb84
[viewchange] use consensus mutex, remove vc lock
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Rongjian Lan
aa643ca856
Add out of order message processing logic ( #3468 )
4 years ago
Leo Chen
e5356675fc
Merge pull request #3466 from LeoHChen/pushgateway
...
Prometheus PushGateway Support
4 years ago
Leo Chen
85ea84715f
[prometheus] add blskeys metric
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
6b5e84dda0
[prometheus] expose Config and remove module variable
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
fb5ee7c2e4
[prometheus] export config varialbles
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
d0924c70ab
[prometheus] move push goroutine to Start function
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
d96c7123be
[prometheus] fix golint
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
47b05a2458
[prometheus] fixed test error
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
1ff326bc48
[prometheus] make config variables private
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
1c739d7581
[prometheus] add node type into job name
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
1bd3b9fe9f
[prometheus] enable pushgateway for mainnet node by default
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
06afef29dc
[prometheus] remove redundant default config
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
62e120b072
[prometheus] support both local metrics and pushgateway
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
cb84be2c93
[prometheus] simplify pushgateway support
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
e0ba870ca7
[prometheus] add EnablePush flag
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
1b15d5a9d7
[prometheus] move config to prometheus package
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
c5bae75f87
[prometheus] use new job/instance for pushgateway
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
d06fcd95f5
[prometheus] use peer id as instance name
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
6817dd3792
[prometheus] add network type and shard id
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
3d43cb54d4
[prometheus] make node metrics variable private
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
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