Skip to content

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

Open

Description

@Vincentkeio

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

Activity

  1. jonssonyan commented on Mar 18, 2024

    @jonssonyan
    Contributor

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

  2. Vincentkeio commented on Mar 18, 2024

    @Vincentkeio
    Author
  3. jonssonyan commented on Mar 19, 2024

    @jonssonyan
    Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions