Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Hellander committed Dec 13, 2024
1 parent 9bd1283 commit ce258e6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions fedn/network/clients/grpc_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
MAX_CONNECTION_IDLE_MS = 30000
MAX_CONNECTION_AGE_GRACE_MS = "INT_MAX" # keep connection open indefinitely
CLIENT_IDLE_TIMEOUT_MS = 30000
MAX_MESSAGE_LENGTH = 10 * 1024 * 1024

GRPC_OPTIONS = [
("grpc.keepalive_time_ms", KEEPALIVE_TIME_MS),
Expand All @@ -36,8 +35,6 @@
("grpc.max_connection_idle_ms", MAX_CONNECTION_IDLE_MS),
("grpc.max_connection_age_grace_ms", MAX_CONNECTION_AGE_GRACE_MS),
("grpc.client_idle_timeout_ms", CLIENT_IDLE_TIMEOUT_MS),
('grpc.max_send_message_length', MAX_MESSAGE_LENGTH),
('grpc.max_receive_message_length', MAX_MESSAGE_LENGTH),
]


Expand Down
2 changes: 1 addition & 1 deletion fedn/network/combiner/modelservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from fedn.common.log_config import logger
from fedn.network.storage.models.tempmodelstorage import TempModelStorage

CHUNK_SIZE = 4 * 1024 * 1024
CHUNK_SIZE = 2 * 1024 * 1024


def upload_request_generator(mdl, id):
Expand Down
2 changes: 1 addition & 1 deletion fedn/network/grpc/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __init__(self, servicer, config: ServerConfig):
KEEPALIVE_TIMEOUT_MS = 20 * 1000
# max idle time before server terminates the connection (5 minutes)
MAX_CONNECTION_IDLE_MS = 5 * 60 * 1000
MAX_MESSAGE_LENGTH = 10 * 1024 * 1024
MAX_MESSAGE_LENGTH = 100 * 1024 * 1024

self.server = grpc.server(
futures.ThreadPoolExecutor(max_workers=350),
Expand Down

0 comments on commit ce258e6

Please sign in to comment.