-
Notifications
You must be signed in to change notification settings - Fork 153
feat: add master queue mechanism #684
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?
feat: add master queue mechanism #684
Conversation
f461a86 to
49352cf
Compare
| help="Master queue reject threshold", | ||
| ) | ||
|
|
||
| master_group.add_argument( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--flexlb_xxxx
| route_logger.warning( | ||
| f"FlexLb cached queue length {queue_length} exceeds threshold " | ||
| f"{StaticConfig.master_config.master_queue_reject_threshold}, " | ||
| f"proactively rejecting request <{input.request_id}>" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
加个qps metrics
| """获取或创建HTTP session""" | ||
| if self._session is None or self._session.closed: | ||
| timeout = ClientTimeout(total=0.5) | ||
| timeout = ClientTimeout(total=3600) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
顺便给他加个配置?默认值:如果开启queue 模式是3600; 不开是0.5 ;设置了以设置为准
| def __init__(self, max_connect_pool_size=1000): | ||
| self.max_connect_pool_size = max_connect_pool_size | ||
| def __init__(self, host_service=None, server_config=None, master_config=None): | ||
| frontend_server_count = server_config.frontend_server_count if server_config else 4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self.max_connect_pool_size 直接从master_config.master_max_connect_pool_size 里面获取 不搞这个奇怪逻辑
|
|
||
|
|
||
| @dataclass | ||
| class HostHeartbeatInfo: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
换个名字 FlexlbHeartbeatInfo
No description provided.