Added description for the failover example.
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/3b8d7f9a Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/3b8d7f9a Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/3b8d7f9a Branch: refs/heads/ignite-7777 Commit: 3b8d7f9a9d72c3adcb5be9d4d1ebe45c00ce498b Parents: b9801c6 Author: Pavel Petroshenko <[email protected]> Authored: Wed Jun 20 15:33:51 2018 +0300 Committer: Pavel Petroshenko <[email protected]> Committed: Wed Jun 20 15:33:51 2018 +0300 ---------------------------------------------------------------------- modules/platforms/nodejs/examples/README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/3b8d7f9a/modules/platforms/nodejs/examples/README.md ---------------------------------------------------------------------- diff --git a/modules/platforms/nodejs/examples/README.md b/modules/platforms/nodejs/examples/README.md index f705fff..95552ca 100644 --- a/modules/platforms/nodejs/examples/README.md +++ b/modules/platforms/nodejs/examples/README.md @@ -59,6 +59,18 @@ This example demonstrates how to establish a secure connection to an Ignite node - get data from the cache - destroys the cache + +### Failover Example ### + +Source: [FailoverExample.js](./FailoverExample.js) + +This example demonstrates the failover behavior of the client +- configures the client to connect to a set of nodes +- connects to a node +- if connection is broken, the client automatically tries to reconnect to another node +- if no specified nodes are available, stops the client + + ## Installation ## (temporary, while the NPM module is not released on [npmjs](https://www.npmjs.com))
