-
Notifications
You must be signed in to change notification settings - Fork 14
Increase poll log interval to reduce log spam #541
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -233,7 +233,7 @@ def wait_for_readiness_signal( | |||||
| readiness_uri: Uri, | ||||||
| timeout: float = 3600.0, | ||||||
| poll_interval: float = 10.0, | ||||||
| log_every_n_attempts: int = 10, | ||||||
| log_every_n_attempts: int = 60, | ||||||
| ) -> None: | ||||||
| """Poll for a readiness sentinel file before initiating RPC connections. | ||||||
|
|
||||||
|
|
@@ -244,6 +244,7 @@ def wait_for_readiness_signal( | |||||
| Supports both GcsUri (production) and LocalUri (testing). | ||||||
| timeout: Maximum time in seconds to wait for the signal. Defaults to 3600. | ||||||
| poll_interval: Time in seconds between poll attempts. Defaults to 10. | ||||||
| log_every_n_attempts: Number of attempts between log messages. Defaults to 60. | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
10 minutes isnt too much? Usually I consider something hanging if no logs for more than 2 -4 mins.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We log updates every 10 minutes, I think every compute rank (e.g. num gpus) dumping every minute is probably too frequent and kind of clogs up the logs. I guess we can make it 5 minutes? And update the logs here to expect the next update. |
||||||
|
|
||||||
| Raises: | ||||||
| TimeoutError: If the readiness signal is not found within the timeout. | ||||||
|
|
||||||
Uh oh!
There was an error while loading. Please reload this page.