eduardosuruagy Posted November 16, 2023 Share Posted November 16, 2023 I have two servers and would like to put the "HyperServer Server Farm" option to work. Currently on server-1 I have the following configuration: IIS + Hyperserver on server-2 I placed my application as Hyperserver service. I configured the cfg file on my server-1 and it looked like this. As shown in the figure, sometimes I access it and it shows that I am on server-1 and sometimes on server-2 I would like to know if my settings are correct. Thanks! Here is my server-1 CFG file configuration: [server-0] enabled=1 url=http://10.32.30.82:8241 name=SERV-APP1 global_url= cluster_mode=0 avoid_direct_access=0 error_redirect_master=0 url_timeout_secs=300 token=yvfnfXXXXXXXXXX [server-1] enabled=1 url=http://10.32.30.83:8241 name=SERV-APP2 global_url= cluster_mode=0 avoid_direct_access=0 error_redirect_master=0 url_timeout_secs=300 token=pexmhpXXXXXXXXXX Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted November 17, 2023 Administrators Share Posted November 17, 2023 Hello, First of all, make sure token parameter is set correctly for both servers. Quote Link to comment Share on other sites More sharing options...
eduardosuruagy Posted November 17, 2023 Author Share Posted November 17, 2023 1 hour ago, Farshad Mohajeri said: Olá, Primeiro de tudo, certifique-se de que o parâmetro token esteja definido corretamente para ambos os servidores. I think this is correct, but I'm sending the CFG files. Server-1 = SigefWeb.cfg Server-2 = hyper_service_teste.cfg SigefWeb.cfg hyper_service_teste.cfg Quote Link to comment Share on other sites More sharing options...
eduardosuruagy Posted November 21, 2023 Author Share Posted November 21, 2023 Can someone help me? Quote Link to comment Share on other sites More sharing options...
Wilton Ergon Posted November 21, 2023 Share Posted November 21, 2023 I suggest seeing the documentation and using hyperserver mode 2 basically you will have a different web address for each server ex: app1.yoursite.com.br app2.yoursite.com.br app.yoursite.com.br your customer would access app.yoursite.com.br unigui redirects to app1 or app2 The documentation explains everything. on each server you will configure the hyperserver dll, and distribute your application as an EXE, I do not recommend using a service Quote Link to comment Share on other sites More sharing options...
eduardosuruagy Posted November 21, 2023 Author Share Posted November 21, 2023 5 minutes ago, Wilton Ergon said: Sugiro ver a documentação e usar o modo hiperservidor 2 basicamente você terá um endereço web diferente para cada servidor ex: app1.seusite.com.br app2.seusite.com.br app.seusite.com.br seu cliente acessaria app.seusite.com.br unigui redireciona para app1 ou app2 A documentação explica tudo. em cada servidor você irá configurar a dll do hiperservidor, e distribuir sua aplicação como um EXE, não recomendo usar um serviço Boa tarde Wilton, no meu caso eu uso o endereço assim: app.meusite.com.br/pasta_cliente1 app.meusite.com.br/pasta_cliente2 app.meusite.com.br/pasta_cliente3 Como ficaria o endereço configurado no arquivo? O manual não ficou muito claro pra mim. -- Good afternoon Wilton, in my case I use the address like this: app.meusite.com.br/pasta_cliente1 app.meusite.com.br/pasta_cliente2 app.meusite.com.br/pasta_cliente3 What would the address configured in the file look like? The manual wasn't very clear to me. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted November 21, 2023 Administrators Share Posted November 21, 2023 5 hours ago, eduardosuruagy said: Can someone help me? Your configuration seems to be correct unless there's something related to your network which prevents communication or some sort of anti virus software which blocks ports or maybe a firewall issue. Quote Link to comment Share on other sites More sharing options...
eduardosuruagy Posted November 21, 2023 Author Share Posted November 21, 2023 7 minutes ago, Farshad Mohajeri said: Sua configuração parece estar correta, a menos que haja algo relacionado à sua rede que impeça a comunicação ou algum tipo de software antivírus que bloqueie portas ou talvez um problema de firewall. I had already released port 8241 on the firewall of both machines. I don't know if it's necessary, but the error continues. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted November 21, 2023 Administrators Share Posted November 21, 2023 1 minute ago, eduardosuruagy said: I had already released port 8241 on the firewall of both machines. I don't know if it's necessary, but the error continues. Can you try same configuration on same PC with Server Nodes running on different ports (but in same computer)? Quote Link to comment Share on other sites More sharing options...
eduardosuruagy Posted November 21, 2023 Author Share Posted November 21, 2023 4 minutes ago, Farshad Mohajeri said: Você pode tentar a mesma configuração no mesmo PC com nós de servidor rodando em portas diferentes (mas no mesmo computador)? I will test, do I need to change both ports? port=8241 [http_transport] start_port=27264 I only released port 8241 on the firewall, is that correct? Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted November 21, 2023 Administrators Share Posted November 21, 2023 4 minutes ago, eduardosuruagy said: I will test, do I need to change both ports? port=8241 [http_transport] start_port=27264 I only released port 8241 on the firewall, is that correct? Since all will run on same PC you must make sure port ranges won't overlap. Quote Link to comment Share on other sites More sharing options...
eduardosuruagy Posted November 21, 2023 Author Share Posted November 21, 2023 15 minutes ago, Farshad Mohajeri said: Como todos serão executados no mesmo PC, você deve garantir que os intervalos de portas não se sobreponham. using the "server-1" machine I accessed server-2 using the network IP and it worked, check the attached image. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted November 21, 2023 Administrators Share Posted November 21, 2023 Can you try with latest build 1576? Quote Link to comment Share on other sites More sharing options...
eduardosuruagy Posted November 21, 2023 Author Share Posted November 21, 2023 6 minutes ago, Farshad Mohajeri said: Você pode tentar com a versão mais recente 1576? Placing the two applications on the same machine and using different ports looks like this. I'll adjust my application for the new version and talk back here ok. Thanks!! Quote Link to comment Share on other sites More sharing options...
Wilton Ergon Posted November 21, 2023 Share Posted November 21, 2023 I was the first user to use the multi server hyperserver, and I had serious performance problems with mode 0, the reason is that all requests continue to be transmitted by the main hyperserver, if you have more than 1000 simultaneous accesses, it is good to think about using mode 2 Quote Link to comment Share on other sites More sharing options...
eduardosuruagy Posted November 21, 2023 Author Share Posted November 21, 2023 1 hour ago, Wilton Ergon said: Fui o primeiro usuário a utilizar o hiperservidor multiservidor, e tive sérios problemas de performance com o modo 0, o motivo é que todas as requisições continuam sendo transmitidas pelo hiperservidor principal, se tiver mais de 1000 acessos simultâneos, é bom pense em usar o modo 2 Eu estou tentando primeiro o modo 0 porque é o mais simples, depois iria tentar o modo 2, mas nem isso estou conseguindo. O sistema até entra no servidor-01 e no servidor-2, mas quando abro o hyperserver ele mostra como na figura abaixo. Coloquei uma opção de quando for o servidor 1 ou servidor 2 mostrar no login. Caso voce possa, eu posso entrar em contato com voce? Me daria um suporte? Caso seja cobrado me fala o valor. ------- I'm trying mode 0 first because it's the simplest, then I would try mode 2, but I'm not even able to do that. The system even enters server-01 and server-2, but when I open the hyperserver it shows as in the figure below. I added an option to show when server 1 or server 2 is displayed at login. If so, can I contact you? Would you give me support? If charged, tell me the amount. Quote Link to comment Share on other sites More sharing options...
eduardosuruagy Posted November 22, 2023 Author Share Posted November 22, 2023 17 hours ago, Farshad Mohajeri said: Você pode tentar com a versão mais recente 1576? Good morning Farshad, I installed the new version and I still have the same problem, can you or someone else help me? Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.