[TRACKING ISSUE] TPC default to 1 connection

Aperta
#651 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
20/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
java, python

Direzione di ricerca

Inizia con la PR collegata lato Java per il contesto dettagliato dell’implementazione, quindi esamina la gestione delle connessioni TPC del client Python e il supporto per ClientTpcConfig. Il lavoro sarà completato quando il client Python utilizzerà per impostazione predefinita una connessione TPC, consentendo al contempo il numero di connessioni configurato descritto nell’issue.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Python
Stelle
115
Fork
78
Merge medio
2g 23h
PR unite (30g)
2

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di hazelcast/hazelcast-python-client

Tutte le issue di hazelcast/hazelcast-python-client

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.