View Issue Details

IDProjectCategoryView StatusLast Update
0004189SymmetricDSNew Featurepublic2022-08-02 20:00
Reportermkurz Assigned To 
Prioritynormal 
Status newResolutionopen 
Product Version3.11.2 
Summary0004189: Node online detector/ ping nodes
DescriptionFor our central to mobil use case it is useful to know if the the notebooks are online. Because the heartbeat has several disadvantages, we implemented a job. (See pull request)
Precondition: The nodes are reachable via ping
Result:
The online status of all nodes can be called via rest call. Example: http://host:port/api/engine/central-0/nodeonlinestatus;
It triggers the ping and returns a json. Example:
{
  "statusList": [
    {
      "nodeId": 1,
      "status": "Online"
    },
    {
      "nodeId": 2,
      "status": "Online"
    },
    {
      "nodeId": 3,
      "status": "Offline"
    }
  ]
}
For example this is useful to show the status in a ui, as the current online status.

In addition it is possible to persist the online times. In this case each each time a node go's offline an entry is made into sym_node_online_history.
For example this is useful when a batch is in error. Then this allows to show if the node has been online after the error occured, how often it was online and how long.
Or it can be prepared to be shown as chart...

Parameters:
start.nodeonlinedetector.job=true default: false
job.nodeonlinedetector.cron=0/30 * * * * * default: 0/30 * * * * *
store.node.online.history=true default: false -> if true persist online times into sym_node_online_history

Open: Integration into the PurgeService/ purge mechanism for sym_node_online_history. -> can be offered if interested
Additional Informationinsert into sym_parameter (external_id, node_group_id, param_key, param_value)
VALUES ('0','central', 'start.nodeonlinedetector.job', 'true')

insert into sym_parameter (external_id, node_group_id, param_key, param_value)
VALUES ('0','central', 'store.node.online.history', 'true')
Tagsapi

Activities

mkurz

2019-12-10 08:05

reporter  

sym_node_online_history.PNG (6,281 bytes)   
sym_node_online_history.PNG (6,281 bytes)   

mkurz

2019-12-10 08:11

reporter   ~0001667

https://github.com/JumpMind/symmetric-ds/pull/108

Issue History

Date Modified Username Field Change
2019-12-10 08:05 mkurz New Issue
2019-12-10 08:05 mkurz File Added: sym_node_online_history.PNG
2019-12-10 08:11 mkurz Note Added: 0001667
2022-08-02 20:00 elong Tag Attached: api