diegojmap Posted January 14, 2021 Share Posted January 14, 2021 Is it possible to know the current node via code? Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted January 14, 2021 Administrators Share Posted January 14, 2021 Yes, UniServerModule.NodeId Link to comment Share on other sites More sharing options...
diegojmap Posted January 14, 2021 Author Share Posted January 14, 2021 thanks Link to comment Share on other sites More sharing options...
eduardosuruagy Posted January 14, 2021 Share Posted January 14, 2021 6 hours ago, Farshad Mohajeri said: Sim, UniServerModule.NodeId The zero node is it reserved for hyperserve only? Does this property here "NodeZero" indicate that the node is zero? Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted January 15, 2021 Administrators Share Posted January 15, 2021 14 hours ago, eduardosuruagy said: The zero node is it reserved for hyperserve only? Does this property here "NodeZero" indicate that the node is zero? No, it is just another Node. NodeZero indicates that this Node Id is equal to zero. NodeZero also has a special purpose. If you set "persistent_node_zero" to true, it will ensure that Node zero will always be available and running, so you can execute part of your code in that Node which requires continuous availability. Such as a Thread Timer which executes special tasks in certain time intervals. 2 Link to comment Share on other sites More sharing options...
eduardosuruagy Posted January 15, 2021 Share Posted January 15, 2021 2 hours ago, Farshad Mohajeri said: Não, é apenas outro Nó. NodeZero indica que este Id de nó é igual a zero. O NodeZero também tem um propósito especial. Se você definir "persistent_node_zero" como true, isso garantirá que o Nó zero estará sempre disponível e em execução, para que você possa executar parte do seu código naquele Nó que requer disponibilidade contínua. Como um Thread Timer, que executa tarefas especiais em determinados intervalos de tempo. Thank you very much!! Link to comment Share on other sites More sharing options...
diegojmap Posted January 15, 2021 Author Share Posted January 15, 2021 Would it be possible to get the process PID? I still have connections that get stuck with consumed CPU. Link to comment Share on other sites More sharing options...
Sanyi Posted May 20, 2021 Share Posted May 20, 2021 Is it possible to get my node state? I want to know if my node is discarded. Thanks Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted May 20, 2021 Administrators Share Posted May 20, 2021 Hello, You can observe HyperServer state by opening the server control panel. Link to comment Share on other sites More sharing options...
Sanyi Posted May 20, 2021 Share Posted May 20, 2021 ok, but I want it from my App Code Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted May 20, 2021 Administrators Share Posted May 20, 2021 This information is not public in the API. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now