ConPaaS-team / conpaas

ConPaaS: integrated runtime environment for elastic cloud applications
http://www.conpaas.eu
BSD 3-Clause "New" or "Revised" License
14 stars 3 forks source link

PHP Autoscaling contains hardcoded instance types #85

Open gpierre42 opened 9 years ago

gpierre42 commented 9 years ago

The PHP autoscaling functionality now seems to work, thanks @hectorj2f and @tcrivat ! But strangely enough the system seems to add new instances of type m1.small while the standard size in this installation was t1.micro.

The reason why this happens is that the autoscaling system contains a hardcoded list of instance types in file conpaas-services/src/conpaas/services/webservers/manager/autoscaling/data/compute_units.json and a few others.

I understand the reason why @hectorj2f did things this way but in a next version we should reconsider this and rather move the list of possible instance types to one of the ConPaaS configuration files.

hectorj2f commented 9 years ago

Yes @gpierre42. I believe you can easily change that by getting the list of available instance types and their hardware characteristics using libcloud driver for AWS.

Please, let it me know if you have any other issue.