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

Add a command to release useless sessions manually #4747

Closed
10328 opened this issue Oct 19, 2022 · 4 comments · Fixed by #5146
Closed

Add a command to release useless sessions manually #4747

10328 opened this issue Oct 19, 2022 · 4 comments · Fixed by #5146
Assignees
Labels
type/feature req Type: feature request
Milestone

Comments

@10328
Copy link

10328 commented Oct 19, 2022

**nebula session连接过多时,就只能等待时间过期后,才可以使用重新创建session **

可以增加一个手动关闭nebula session的命令关掉不需要的session

Describe the solution you'd like

可以把session时间设置存活时间默认调整短点, 配合空闲时间, 来将长时间不使用的session资源, 服务器端自动释放出来

@10328 10328 added the type/feature req Type: feature request label Oct 19, 2022
@Sophie-Xie Sophie-Xie changed the title nebula session的定期过期机制, 可以增加一个手动关闭nebula session的命令吗 Add a command to release useless sessions manually Oct 20, 2022
@wey-gu
Copy link
Contributor

wey-gu commented Oct 27, 2022

@MuYiYong we should consider this, when for some reason, when session context was lost in the client side but persisted in meta, and the number of those sessions exceeded the default 300 (max session per user per IP), it's impossible for clients to create new sessions(user will encounter this issue quite often), add admin query (i.e. kill session) will be quite essential in such cases.

@wdroste
Copy link

wdroste commented Nov 15, 2022

I encounter it quite easily, my only way to recover was to shut it all down change the timeout to 1min and restart the whole cluster.

@wey-gu
Copy link
Contributor

wey-gu commented Nov 16, 2022

cc @MuYiYong

@wey-gu
Copy link
Contributor

wey-gu commented Nov 16, 2022

@wdroste this is planned already :).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/feature req Type: feature request
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

5 participants