Skip to content

Commit

Permalink
[perf] Reduce job metrics reporting sleep interval to 15 seconds and …
Browse files Browse the repository at this point in the history
…disable MQTT debug logging
  • Loading branch information
charlieyl committed Feb 18, 2025
1 parent da84c87 commit 480ca1f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions python/fedml/core/distributed/communication/mqtt/mqtt_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ def loop_forever(self):
self._client.loop_forever(retry_first_connection=True)

def send_message(self, topic, message, publish_single_message=False):
logging.info(
f"FedMLDebug - Send: topic ({topic}), message ({message})"
)
# logging.info(
# f"FedMLDebug - Send: topic ({topic}), message ({message})"
# )
self.check_connection()

mqtt_send_start_time = time.time()
Expand All @@ -116,9 +116,9 @@ def send_message(self, topic, message, publish_single_message=False):
return 0

def send_message_json(self, topic, message, publish_single_message=False):
logging.info(
f"FedMLDebug - Send: topic ({topic}), message ({message})"
)
# logging.info(
# f"FedMLDebug - Send: topic ({topic}), message ({message})"
# )
self.check_connection()

if publish_single_message:
Expand Down
2 changes: 1 addition & 1 deletion python/fedml/core/mlops/mlops_job_perfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def report_job_stats_entry(self, sys_event):
logging.debug("exception when reporting job pref: {}.".format(traceback.format_exc()))
pass

time.sleep(20)
time.sleep(15)

logging.info("Job metrics process is about to exit.")
mqtt_mgr.loop_stop()
Expand Down

0 comments on commit 480ca1f

Please sign in to comment.