Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri Jul 17, 2015 8:59 am 
Offline

Joined: Fri Jul 17, 2015 8:46 am
Posts: 1
Hi,

This is my first post here!

We have a couple of linodes, and we are very happy with them.

We are looking into adding a load balancer in front of them, and being able to add an extra node in case of extra traffic coming to our websites. I know it is possible to do create or remove nodes using the API or the CLI, but I can't find any resource to be able to do that automatically.

Here is a list of things I can't find yet:
- How to get system usage (cpu, memory) of a linode using the API/CLI?
- How to configure private IP address using a linode? (this will be needed to connect it to the noad balancer)
- How to get the node balancer status if we go over the concurrency limit (unlikely, but we never know)?

Thanks!


Top
   
PostPosted: Fri Jul 24, 2015 12:45 pm 
Offline
Linode Staff

Joined: Wed Jul 01, 2015 10:33 am
Posts: 59
Hi Noel, and welcome to the forums! I'd be glad to try and help you out with your inquiries.

Unfortunately you can't get the CPU and Memory usage from our APIs, but you should be able to set up your own code to read that from your server, which would also be more reliable (reading from your server directly, instead of reading from our stats boxes that read from your server, takes one step and potential point of failure out of the procedure).

You can get the Private IP of a Linode through the API when you add one, which is found here: https://www.linode.com/api/linode/linode.ip.addprivate

There is also no way to grab your current connections from the NodeBalancer API. I would suggest setting up a script that checks to see if all aspects are still up and running every x minutes/seconds, and you can use the API to programmatically list out your NodeBalancers and connected Nodes to check each one.


Top
   
PostPosted: Mon Jul 27, 2015 10:20 am 
Offline
Junior Member

Joined: Thu Jun 03, 2004 4:04 pm
Posts: 42
mkorsak wrote:
Unfortunately you can't get the CPU and Memory usage from our APIs.


Is there a reason this information isn't included in the API in something like the linode.list action? Historical data would be cool but I could live with instantaneous.


Top
   
PostPosted: Thu Jul 30, 2015 7:39 pm 
Offline
Linode Staff

Joined: Wed Jul 01, 2015 10:33 am
Posts: 59
I don't have a reasoning for why it isn't included now, but I agree that it would be great to have. I'll pass this request on to see if it can be included in a future update.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group