You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.. Unless required by applicable law or agreed to in writing, software
10
+
distributed under the License is distributed on an "AS IS" BASIS,
11
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+
See the License for the specific language governing permissions and
13
+
limitations under the License.
14
+
15
+
===================
16
+
Partition Awareness
17
+
===================
18
+
19
+
Partition awareness allows the thin client to send query requests directly to the node that owns the queried data.
20
+
21
+
Without partition awareness, an application that is connected to the cluster via a thin client executes all queries and operations via a single server node that acts as a proxy for the incoming requests. These operations are then re-routed to the node that stores the data that is being requested. This results in a bottleneck that could prevent the application from scaling linearly.
22
+
23
+
.. image:: images/partitionawareness01.png
24
+
:alt:Without partition awareness
25
+
26
+
Notice how queries must pass through the proxy server node, where they are routed to the correct node.
27
+
28
+
With partition awareness in place, the thin client can directly route queries and operations to the primary nodes that own the data required for the queries. This eliminates the bottleneck, allowing the application to scale more easily.
29
+
30
+
.. image:: images/partitionawareness02.png
31
+
:alt:With partition awareness
32
+
33
+
Partition awareness can be enabled or disabled by setting `partition_aware` parameter in
34
+
:meth:`pygridgain.client.Client.__init__` or :meth:`pygridgain.aio_client.AioClient.__init__` to `True` (by default)
35
+
or `False`.
36
+
37
+
Also, it is recommended to pass list of address and port pairs of all server nodes
38
+
to :meth:`pygridgain.client.Client.connect` or to :meth:`pygridgain.aio_client.AioClient.connect`.
0 commit comments