View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004189 | SymmetricDS | New Feature | public | 2019-12-10 08:05 | 2022-08-02 20:00 |
Reporter | mkurz | Assigned To | |||
Priority | normal | ||||
Status | new | Resolution | open | ||
Product Version | 3.11.2 | ||||
Summary | 0004189: Node online detector/ ping nodes | ||||
Description | For 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 Information | insert 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') | ||||
Tags | api | ||||