NATs cluster replication ready state

72 views
Skip to first unread message

Veselin Kantsev

unread,
Jul 18, 2022, 5:46:55 AM7/18/22
to nats
Hello,

I'm investigating a case where new nodes joining a cluster might advertise Ready state too early.

Generally speaking, when does tcp/4222 start accepting requests on a new node joining a cluster?

Is it only after the node has fully synced up with the cluster or whilst it is syncing as well?

In my case, the NATs nodes are behind a Load Balancer, which uses a health-check on tcp/4222 to mark a node as Ready and start forwarding client requests to it, thus I'm trying to ensure that node is indeed Ready, i.e. has the cluster data synced and ready to serve.

Regards,
Veselin 

derek

unread,
Jul 18, 2022, 11:21:32 AM7/18/22
to nats
Does this involve JetStream?

Generally you could wait for /healthz monitoring endpoint to return 200 - OK before allowing the load balancer to direct traffic to the server.

Veselin Kantsev

unread,
Jul 19, 2022, 7:29:21 AM7/19/22
to nat...@googlegroups.com
Thank you for the prompt response Derek,

Yes, JetStream is enabled.

--
You received this message because you are subscribed to a topic in the Google Groups "nats" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/natsio/YhUiluOd4XY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to natsio+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/natsio/910f8070-af9a-430c-bc31-87dbb220ae7fn%40googlegroups.com.

This email, the information herein and any attached materials (collectively the "Email") are intended only for the addressee(s) and may contain confidential, proprietary, copyrighted and/or privileged material. If you have received this Email in error please delete it and notify the sender immediately. This Email remains the property of Elwood, which reserves the right to require its return (together with any copies or extracts thereof) at any time upon request. Any unauthorised review, retransmission, dissemination, forwarding, printing, copying or other use of this Email is prohibited. Elwood may be legally required to review and retain outgoing and incoming email and produce it to regulatory authorities and others with legal rights to the information. Internet communications cannot be guaranteed to be secure or error free as information could be intercepted, changed, corrupted, lost, arrive late or contain viruses. Elwood accepts no liability for any errors, or omissions in this Email which arise as a result of internet transmission. This Email is not an official confirmation of any transaction. Any comments or statements made herein do not necessarily reflect the views of Elwood. 
This Email is not an offer to sell or solicitation of an offer to buy any security or investment. It does not constitute or contain any investment advice and is being made without regard to the recipients' investment objectives, financial situation or means. Past performance is not an indicator of future results and Elwood provides no assurance that future results will be consistent with any information provided herein or attached hereto. Elwood and the sender make no warranties regarding the accuracy or completeness of the information in this Email and it should not be relied upon and is subject to change without notice. Elwood and its representatives, officers and employees accept no responsibility for any losses suffered as a result of reliance on the information in this Email or the reliability, accuracy, or completeness thereof.
You agree and acknowledge that you will handle any personal data which Elwood provides to you in accordance with the requirements of applicable data protection legislation, including General Data Protection Regulation in the EU.
In this Email, "Elwood" means Elwood Technologies LLP, Elwood Technologies Services Limited, Elwood Capital Management Limited and any of their respective affiliates (as applicable).
Reply all
Reply to author
Forward
0 new messages