automation for : Verify SON performance metric - total_voted_time #242

Closed
opened 2022-01-12 11:19:21 +00:00 by pavel.baykov · 6 comments
pavel.baykov commented 2022-01-12 11:19:21 +00:00 (Migrated from gitlab.com)

total_voted_time - is one of the SON's stat used for measuring SON's historic performance

total_voted_time → provides the amount of time(cumulative sum) that this SON is selected as one of the active SONs.

total_voted_time metric is tracked under son statistics object.

Ex:

get_object 2.24.2
[{
"id": "2.24.2",
"owner": "1.27.2",
"total_txs_signed": 23,
"txs_signed": 0,
"total_voted_time": 2880,
"total_downtime": 0,
"current_interval_downtime": 0,
"last_down_timestamp": "1970-01-01T00:00:00",
"last_active_timestamp": "2020-03-24T08:16:30",
"total_sidechain_txs_reported": 5,
"sidechain_txs_reported": 5
}
]

total_voted_time - is one of the SON's stat used for measuring SON's historic performance total_voted_time → provides the amount of time(cumulative sum) that this SON is selected as one of the active SONs. total_voted_time metric is tracked under son statistics object. Ex: get_object 2.24.2 [{ "id": "2.24.2", "owner": "1.27.2", "total_txs_signed": 23, "txs_signed": 0, "total_voted_time": 2880, "total_downtime": 0, "current_interval_downtime": 0, "last_down_timestamp": "1970-01-01T00:00:00", "last_active_timestamp": "2020-03-24T08:16:30", "total_sidechain_txs_reported": 5, "sidechain_txs_reported": 5 } ]
pavel.baykov commented 2022-01-12 11:19:21 +00:00 (Migrated from gitlab.com)

assigned to @pavel.baykov

assigned to @pavel.baykov
pavel.baykov (Migrated from gitlab.com) closed this issue 2022-01-14 13:00:50 +00:00
pavel.baykov (Migrated from gitlab.com) reopened this issue 2022-01-17 10:25:02 +00:00
pavel.baykov commented 2022-01-21 09:20:18 +00:00 (Migrated from gitlab.com)

to test:
pytest -s -v test.py::test_Total_Voted_Time

to test: pytest -s -v test.py::test_Total_Voted_Time
serkixenos commented 2022-01-31 03:36:16 +00:00 (Migrated from gitlab.com)
test.py::test_Total_Voted_Time test_Total_Voted_Time: sonaccount03
Wait son sends next heartbeat...
FAILED
``` test.py::test_Total_Voted_Time test_Total_Voted_Time: sonaccount03 Wait son sends next heartbeat... FAILED ```
pavel.baykov commented 2022-02-18 18:49:53 +00:00 (Migrated from gitlab.com)

implementation changed according to JIRA-334

implementation changed according to JIRA-334
pavel.baykov commented 2022-02-18 18:50:22 +00:00 (Migrated from gitlab.com)

however it’s failing to pass, according to Kiran this functionality have problems

however it’s failing to pass, according to Kiran this functionality have problems
pavel.baykov commented 2022-02-18 18:51:26 +00:00 (Migrated from gitlab.com)

need to check under GDB:
db_maint.cpp
void database::update_son_metrics(const vector<son_info>& curr_active_sons)
if line 281
_stats.total_voted_time = _stats.total_voted_time + get_global_properties().parameters.maintenance_interval;
executed for all active SONS

need to check under GDB: db_maint.cpp void database::update_son_metrics(const vector<son_info>& curr_active_sons) if line 281 _stats.total_voted_time = _stats.total_voted_time + get_global_properties().parameters.maintenance_interval; executed for all active SONS
serkixenos (Migrated from gitlab.com) closed this issue 2022-03-09 02:40:59 +00:00
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Peerplays_Blockchain/peerplays_migrated#242
No description provided.