Giter Site home page Giter Site logo

Comments (5)

rapiz1 avatar rapiz1 commented on May 22, 2024

是有定义同名服务吗?

如果是,这是期望行为。一个service只能有一个来源。两个client同时竞争一个service会导致相互抢占下线。

from rathole.

justbelieveyourself avatar justbelieveyourself commented on May 22, 2024

是相同的服务名称,可否改成如果A已经进行了连接,B再连接的时候报错,并不对A造成下线的影响

from rathole.

rapiz1 avatar rapiz1 commented on May 22, 2024

可否改成如果A已经进行了连接,B再连接的时候报错,并不对A造成下线的影响

设计成抢占下线的目的,是希望在原来连接的 Client 僵死的时候,新来的 Client 能够将其快速抢占下线,这样有利于可靠性。

你是想做多活或者负载均衡吗?我推荐你设置多个 service 来避免抢占的问题,让多个 service 同时在线,然后在 visitor 访问服务的时候选择其中一个 service 进行连接。

也可以在多个 service 外面套一个 load balancer。一般 load balancer 都有 health check 的能力,这样对于 visitor 来说,即使后面有多个 service, 上线或者下线,都是无感的。

from rathole.

justbelieveyourself avatar justbelieveyourself commented on May 22, 2024

好的,感谢
想问下server端同时最多可以提供多少个服务,有这方面的测试吗?

from rathole.

rapiz1 avatar rapiz1 commented on May 22, 2024

想问下server端同时最多可以提供多少个服务

内部使用哈希表存储,没有硬编码上限

有这方面的测试吗?

没有这方面的测试,欢迎反馈 :)

from rathole.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.