mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #3277] [Feature Request] Any way to support kick off client connection from server? #2627
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#2627
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kom0055 on GitHub (Jan 31, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3277
Describe the feature request
Is there any way to support kick off client connection from sever? I mean in server control plane
有什么接口可以在服务端让已连接的客户端下线么?
Describe alternatives you've considered
If not, might provide a set of control interfaces as well
Affected area
@Becods commented on GitHub (Jan 31, 2023):
建议配合 Killcx 使用
@kom0055 commented on GitHub (Jan 31, 2023):
感觉这样不是很优雅。。
我们是运维方向的业务,用K8S扩缩容保证高可用。为什么需要下线client到server的连接,是因为frp这一套实际上是有状态的应用,在扩容的过程中如果不断开已有的连接,新扩容出来的Pod上可能很长时间一个连接也没有,除非某次连接断开,客户端重新建立tunnel。
我个人认为,实际上我们目前的依赖关系是 app->frp->os,直接从app->os 可能会使得项目维护慢慢变得困难。因为app中看到的是业务上的一个连接id 不需要关心暴露的端口是啥。
不过这个我也会去尝试,我们目前是准备在容器里面通过frp sidecar形式做跨集群NAT穿越。
我有几个想法
大佬们觉得有没有这种类似的场景或者需求的必要?或者有其他好的解决方案
另外如果有需要做的话,方案讨论完我可以帮把手一起实现,还挺想贡献些代码的,哈哈
@fatedier commented on GitHub (Jan 31, 2023):
@kom0055 想法挺好,但是并不打算在当前的版本里引入相关的能力了。像高可用,水平扩展等等并不是只有这一点,而是可能要考虑一个完整的设计。后面可以在 v2 里做的更好。
@github-actions[bot] commented on GitHub (Mar 3, 2023):
Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.