I have checked that this is not related to scaling. 

Load metrics are collected by a separate process (stats-poller), which is 
affected as described above.

On the other hand, scaling is handled by the Scalr::Scaling::Sensors PHP 
package, which is affected in a similar way. Some of the sensors include 
code similar to:

$this->snmpClient->connect($DBServer->remoteIp, $port ? $port : 161, 
$dbFarm->Hash, null, null, false);

This seems to be using only the remoteIp of the machine.

For the record, I'm using:

                    if ($DBServer->remoteIp == null) {
                        $this->snmpClient->connect($DBServer->localIp, 
$port ? $port : 161, $dbFarm->Hash, null, null, false);
                    } else {
                        $this->snmpClient->connect($DBServer->remoteIp, 
$port ? $port : 161, $dbFarm->Hash, null, null, false);
                    }

This works for me because my Scalr instance can access the VPC non-public 
hosts directly.

I guess this shall use the proxying mechanism provided by the VPC role.

Best regards.




El sábado, 24 de agosto de 2013 21:24:46 UTC+2, José Juan Montes escribió:
>
> Hi!
>
> I have installed Scalr 4.4 from master a few days ago, and after initial 
> setup I am now running the python stats-poller process.
>
> In Scalr interface "Farm Monitoring" I can now see graphics for many of 
> the hosts. However, I cannot see graphics for the hosts which have no 
> external IP address.
>
> Digging into scalr-poller code I can see the following query being done:
>
>     servers = session.query(db.servers.server_id, db.servers.farm_id, 
> db.servers.farm_roleid,
>             db.servers.index, db.servers.remote_ip).filter(and_(
>             db.servers.client_id.in_(clients),
>             db.servers.status=='Running',
>             db.servers.remote_ip!='None')).all()
>
>
> This seems to be explicitly excluding servers with no remote IP.
>
> In my case, however, these servers run within a VPC and they are 
> accessible by Scalr through their internal addresses in any case.
>
> I am also fearing that this may prevent CPU-Load based scaling from 
> working... can anyone tell if scaling up is done based on the RRD data from 
> the stats poller?
>
> Is there a solution to make farm monitoring work for all hosts?
>
> Thanks!
>

-- 
You received this message because you are subscribed to the Google Groups 
"scalr-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to