[TRACKING ISSUE] TPC default to 1 connection

Offen
#651 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
20/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
java, python

Rechercherichtung

Beginne mit dem verlinkten Java-seitigen PR für den detaillierten Implementierungskontext und untersuche anschließend die TPC-Verbindungsverwaltung des Python-Clients sowie die Unterstützung für ClientTpcConfig. Als erledigt gilt die Aufgabe, wenn der Python-Client standardmäßig eine TPC-Verbindung verwendet und gleichzeitig die im Issue beschriebene konfigurierte Anzahl von Verbindungen zulässt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
Python
Sterne
115
Forks
78
Ø Merge
2 T. 23 Std.
Gemergte PRs (30 T.)
2

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus hazelcast/hazelcast-python-client

Alle Issues in hazelcast/hazelcast-python-client

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.