Skip to content
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

A few tweaks to the JetStream code for better observability and throu… #158

Merged
merged 1 commit into from
Jan 3, 2025

Conversation

fenghuizhang
Copy link
Collaborator

…ghput.

  • Added custom GC config on the serve side, by defult Python does too much GC as we allocate a lot of objects.
  • Tweaked log level in orchestrator to WARNING so important messages don't hide in server logs.
  • Added slow TTFT detection and text logging on both server and client side (benchmark_serving as the client).
  • Fixed timestamp recording on the server side.
  • Added prefill based throttling on the client side.
  • Added concurrent active request throttling on the client side.

@fenghuizhang fenghuizhang force-pushed the fhzhang/rampup branch 8 times, most recently from 62aa6c5 to bda2e22 Compare December 29, 2024 00:14
@zhihaoshan-google
Copy link
Collaborator

Thanks Fenghui for the change! LGTM.

self._init_value = init_value
self._value = init_value
self._block_on_zero_seconds = block_on_zero_seconds
self._lock = asyncio.Lock()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The lock seems not needed, as there isn't any thread or coroutine switch when read/write self._value (operation to self._value is atomic).

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to know. Thanks. I removed the lock and renamed things accordingly. Did a manual run, things look fine.

…ghput.

+ Added custom GC config on the serve side, by defult Python does too much GC as we allocate a lot of objects.
+ Tweaked log level in orchestrator to WARNING so important messages don't hide in server logs.
+ Added slow TTFT detection and text logging on both server and client side (benchmark_serving as the client).
+ Fixed timestamp recording on the server side.
+ Added prefill based throttling on the client side.
+ Added concurrent active request throttling on the client side.
@fenghuizhang fenghuizhang merged commit 8bc6d88 into main Jan 3, 2025
3 checks passed
@fenghuizhang fenghuizhang deleted the fhzhang/rampup branch January 3, 2025 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants