Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:comet:cluster [2018/02/17 23:44]
anastation468 [Tuning of section [ws]]
en:comet:cluster [2019/12/18 02:05] (current)
Line 32: Line 32:
   * Pwd - password for connecting   * Pwd - password for connecting
  
-If  us cluster consists from three nodes that means in configuration should be specified two nearby nodes. Thus at the receipt of data from JavaScript API will be notified other the server of cluster.+If  us cluster consists from three nodes that means in configuration should be specified two nearby nodes. Thusat the receipt of data from JavaScript API will be notified other the server of cluster.
  
 ====== Tuning of section [cometqlproxy] ====== ====== Tuning of section [cometqlproxy] ======
Line 39: Line 39:
 By the structure it looks like the section of cometql By the structure it looks like the section of cometql
  
-If in the not cluster mode all queries from CometQL went away to the module of cometql on that port that was cauldron in a section [cometql] that in the mode of cluster you can activate on one node or on a few nodes cluster module of cometqlproxy and to send queries to it (it will not be to change queries) accepting the module of cometqlproxy CometQL query of parses it and depending on a query sends it to one or a few nodes of cluster. If a query was on the insertion of data (insert and set) that it will be sent to one of living node cluster. If request for the receipt of data that data will be extracted or with one node or in worst cases will be polled all living nodes, whereupon a general answer will be collected from answers from all nodes.+If in the not cluster mode all queries from CometQL went away to the module of cometql on that port that was cauldron in a section [cometql] that in the mode of cluster you can activate on one node or on a few nodes cluster module of cometqlproxy and to send queries to it (it will not be to change queries) accepting the module of cometqlproxy CometQL query of parses it and depending on a query sends it to one or a few nodes of cluster. If a query was on the insertion of data (insert and set) that it will be sent to one of living node cluster. If request for the receipt of data that data will be extracted or with one node or in the worst cases will be polled all living nodes, whereupon a general answer will be collected from answers from all nodes.
  
 In the section of cometqlproxy too there is a parameter of cluster looks like the analogue from the section of ws, except that it must list all the nodes of the cluster and not just the neighbors. So, if your cluster from three nodes that in the sections of ws each of nodes will be for two lines for connecting to other nodes and in the section of cometqlproxy will be indicated all three nodes cluster. In the section of cometqlproxy too there is a parameter of cluster looks like the analogue from the section of ws, except that it must list all the nodes of the cluster and not just the neighbors. So, if your cluster from three nodes that in the sections of ws each of nodes will be for two lines for connecting to other nodes and in the section of cometqlproxy will be indicated all three nodes cluster.