[TRACKING ISSUE] TPC default to 1 connection

Ouverte
#651 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
20/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
À l'abandon
Stack technique
java, python

Piste de recherche

Commencez par le PR Java lié pour obtenir le contexte détaillé de l’implémentation, puis examinez la gestion des connexions TPC du client Python et la prise en charge de ClientTpcConfig. Ce sera terminé lorsque le client Python utilisera par défaut une connexion TPC tout en permettant le nombre de connexions configuré décrit dans l’issue.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

The tracking issue for the Java side PR.

See https://github.com/hazelcast/hazelcast/pull/25871 for details.


Before this PR, when a TPC aware client connects to a TPC enabled server, the server sends the list of TPC ports it can connect to. So if the server has 64 TPC threads, it will open 64 server sockets and the client will make 64 connections.

The problem is that having many connections, leads to smaller and more packets which causes additional processing overhead and can run into packets per seconds limits (e.g. on AWS). And the performance penalty of the PPS limit is a lot higher than the penalty of context switching.

This PR changes that. By default, a client will now connect to 1 random port from the TPC port list. The Hazelcast member will then route the request to the right core (the same as with classic networking). The number of ports can be configured through the ClientTpcConfig object and one can restore the behavior of connecting to all TPC ports or a subset.

Langage dominant
Python
Étoiles
115
Forks
78
Merge moyen
2 j 23 h
PR mergées (30 j)
2

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de hazelcast/hazelcast-python-client

Toutes les issues de hazelcast/hazelcast-python-client

Issues similaires

Plus d'issues Python

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.