Repository navigation
Add heartbeat on the server - #4750
Merged
Merged
Conversation
lydia-duncan
left a comment
Contributor
There was a problem hiding this comment.
Just some questions and a couple of suggestions
lydia-duncan
approved these changes
Jul 29, 2025
ajpotts
approved these changes
Aug 1, 2025
ajpotts
reviewed
Aug 4, 2025
Signed-off-by: Vassily Litvinov <[email protected]>
Signed-off-by: Vassily Litvinov <[email protected]>
Signed-off-by: Vassily Litvinov <[email protected]>
ajpotts
enabled auto-merge
August 6, 2025 16:25
ajpotts
approved these changes
Aug 6, 2025
drculhane
pushed a commit
to drculhane/arkouda
that referenced
this pull request
Aug 20, 2025
This heartbeat allows client to recognize that the connection to the server went away while the server was processing a message from the client. The client raises an exception in this case. The heartbeat is activated by passing a positive number to the `timeout` argument of `ak.connect()`. While there, tidy up some code. Also, introduce `ak.client.server_sleep(seconds)` to enable testing of the heartbeat, and `ak.client.note_for_server_log(message)` to make it easier to track the tests being tested while examining `arkouda.log`. Implementation-wise, this enables "TCP keepalive" on the ZMQ socket between the client and the server and adds a monitor for this socket on the client. After sending a request to the server, the client waits for a reply with a timeout. If it times out, the client checks the monitor for "closed "or "disconnected" events. If none, the client goes back to waiting for a server reply with a timeout. As before, there is no overall timeout for server response. While there, moved `test_no_op` and `test_ruok` within `client_test.py` to match the relative position of `_no_op` and `ruok` within `client.py`. Related: Bears-R-Us#1010 --------- Signed-off-by: Vassily Litvinov <[email protected]>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This heartbeat allows client to recognize that the connection to the server went away while the server was processing a message from the client. The client raises an exception in this case. The heartbeat is activated by passing a positive number to the
timeoutargument ofak.connect().While there, tidy up some code. Also, introduce
ak.client.server_sleep(seconds)to enable testing of the heartbeat, andak.client.note_for_server_log(message)to make it easier to track the tests being tested while examiningarkouda.log.Implementation-wise, this enables "TCP keepalive" on the ZMQ socket between the client and the server and adds a monitor for this socket on the client. After sending a request to the server, the client waits for a reply with a timeout. If it times out, the client checks the monitor for "closed "or "disconnected" events. If none, the client goes back to waiting for a server reply with a timeout. As before, there is no overall timeout for server response.
While there, moved
test_no_opandtest_ruokwithinclient_test.pyto match the relative position of_no_opandruokwithinclient.py.Related: #1010