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

主控机关机了以后仆从机的节点全都失效 #374

Open
Vincentkeio opened this issue Mar 18, 2024 · 3 comments
Open

主控机关机了以后仆从机的节点全都失效 #374

Vincentkeio opened this issue Mar 18, 2024 · 3 comments

Comments

@Vincentkeio
Copy link

按我理解,主控设置节点应该是在各仆从机上安装了代理协议,即使主控关掉也没有影响,但现实是,当主控掉线,其他小鸡代理都失效了

@jonssonyan
Copy link
Contributor

可以将tp的服务分为以下几类,面板(trojan-panel后端,trojan-panel-ui前端),数据库(mariadb),缓存(redis),节点(trojan-panel-core)。面板机可以关,面板机主要功能是数据库和缓存的操作(不涉及代理操作),但是数据库和缓存不能关,因为节点机会定时轮询数据库里面的数据,比如,面板机关了,那么就没办法添加用户,但是已经存在数据库里面的用户还是可以正常使用的。举一个详细的例子,先在面板机添加了用户,这条数据插入到了数据库,安装了内核的节点机,当有用户连接时,如果该用户在数据库中,那么可以正常连接,否则拒绝连接。

@Vincentkeio
Copy link
Author

Vincentkeio commented Mar 18, 2024 via email

@jonssonyan
Copy link
Contributor

@Vincentkeio 数据流是这样的:内核读取数据库中的数据,调代理软件的接口,写入到内存,从而实现认证和流量控制。可能会消耗性能,但是不会影响代理软件的网络速度。数据需要持久化,避免不了使用到数据库。

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

No branches or pull requests

2 participants