-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split gRPC Server and client settings and set connection backoff to 1…
…00 ms The split is needed to move Function Executor into Tensorlake repo so FE code only include grpc server settings. The 100 ms channel connection backoff is needed to disable defaul exponential backoff logic in grpc client which results in very long connection durations if the first attempt to connect to grpc server wasn't successfull. This reduces duration of SDK tests by about 4x.
- Loading branch information
Showing
8 changed files
with
28 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,4 +61,3 @@ sqlite* | |
|
||
# Miscellaneous | ||
/executor-py/~ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
indexify/src/indexify/executor/function_executor/server/client_configuration.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# We send function inputs and outputs over gRPC. | ||
# -1 means unlimited. We don't want to limit the size of data customers are using. | ||
# The effective max message size in this case is about 1.9 GB, see the max payload test. | ||
# This is due to internal hard gRPC limits. When we want to increase the message sizes | ||
# we'll have to implement chunking for large messages. | ||
_MAX_GRPC_MESSAGE_LENGTH = -1 | ||
|
||
# Optimize the channels for low latency connection establishement as we are running on the same host. | ||
_RECONNECT_BACKOFF_MS = 100 | ||
|
||
GRPC_CHANNEL_OPTIONS = [ | ||
("grpc.max_receive_message_length", _MAX_GRPC_MESSAGE_LENGTH), | ||
("grpc.max_send_message_length", _MAX_GRPC_MESSAGE_LENGTH), | ||
("grpc.min_reconnect_backoff_ms", _RECONNECT_BACKOFF_MS), | ||
("grpc.max_reconnect_backoff_ms", _RECONNECT_BACKOFF_MS), | ||
("grpc.initial_reconnect_backoff_ms", _RECONNECT_BACKOFF_MS), | ||
] | ||
|
||
# If a health check takes more than this duration then the server is considered unhealthy. | ||
HEALTH_CHECK_TIMEOUT_SEC = 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters