Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

New instance details while upscaling cluster

New instance details while upscaling cluster

New Contributor

Hi

We are using cloudbreak api to upscale the cluster with stackendpoint.put(stackId, InstanceGroupAdjustmentJson). Is there a way to know the ip addresses of newly created instances? like any other Synchronous API or REST API which returns the details of new ec2 instances created as part of upscaling?

3 REPLIES 3
Highlighted

Re: New instance details while upscaling cluster

Expert Contributor

Hi @Sudhakara Vasiraju,

stackendpoint.put() endpoint is just starts the upscale of the stack but it doesn't wait for the result. It happens asynchronously. There are no new ips at that time. So what you can do is:

- poll get endpoint and check for new nodes in the instance groups

- subscribe to evetns, and you will receive a message when Cloudbreak collected new metadata of the nodes on a websocket.

Re: New instance details while upscaling cluster

New Contributor

Thank you @rkovacs

just wondering is there any synchronous api available. Right now I am using stack response api (stackresponse.instancegroup.metadata.privateip) before and after and finding the difference in lists to know the new ip addresses.

Re: New instance details while upscaling cluster

Expert Contributor

We don't have. All of the operation are running in a reactive way in background. Cloudbreak has a non blocking async flow engine, which handle operations like upscale. But as i mentioned we have a subscriptions. You send a subscription request on that endpoint, and the system will send notifications about the state of the operations. Web UI works on the same way.