SeaCloudsEU / SeaCloudsPlatform

Seamless adaptive multi-cloud management of service-based applications
http://www.seaclouds-project.eu/
Apache License 2.0
18 stars 20 forks source link

FIX: create autoscaler policy with agnostic information #267

Closed perezp closed 8 years ago

perezp commented 8 years ago

Changed the optimizer code to create policies with the structure as in the following example:

 policies:
      - autoscaling:
          type: seaclouds.policies.autoscaling.AutoScalerPolicy
          metric: seaclouds.metrics.requestPerNode
          autoscaler.resizeDownStabilizationDelay: 120000
          metricLowerBound: N1
          metricUpperBound: N2
          minPoolSize: N3
          maxPoolSize: N4
codecov-io commented 8 years ago

Current coverage is 37.99%

Merging #267 into master will increase coverage by +1.26% as of 5519d29

@@            master    #267   diff @@
======================================
  Files          329     331     +2
  Stmts        12064   12293   +229
  Branches      1548    1573    +25
  Methods          0       0       
======================================
+ Hit           4432    4671   +239
+ Partial        449     440     -9
+ Missed        7183    7182     -1

Review entire Coverage Diff as of 5519d29

Powered by Codecov. Updated on successful CI builds.

kiuby88 commented 8 years ago

@perezp , thanks a lot for this. Could you provide an example of a generated ADP with policy?

perezp commented 8 years ago

@kiuby88 Here it is an example of ADP for an input AAM of a three-tier app www+ws+db https://gist.github.com/perezp/704d148cb2e65b3c2fff

kiuby88 commented 8 years ago

:+1: merge!!!!!!!!

perezp commented 8 years ago

Thank you @kiuby88