[TRACKING ISSUE] TPC default to 1 connection
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
- Bereich
- distributed-systems, networking
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
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus hazelcast/hazelcast-python-client
-
Type: Test-Failure
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
-
Type: Test-Failure
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 52/100
-
asyncio Type: Test-Failure
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 38/100
-
asyncio to-jira Type: Test-Failure
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
hazelcast/hazelcast-python-client#761 · 1 Kommentar ·
-
asyncio to-jira Type: Test-Failure
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
hazelcast/hazelcast-python-client#760 · 1 Kommentar ·
Alle Issues in hazelcast/hazelcast-python-client
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
marketcalls/openalgo#2472 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 95/100
marimo-team/marimo#11949 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug server-time v2
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
modelcontextprotocol/servers#5559 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
jxxghp/MoviePilot#7449 ·
Maintainer antworten meist innerhalb von 1 Tag
-
devops help wanted
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
guaardvark/guaardvark#421 ·
Maintainer antworten meist innerhalb von 2 Tagen