Method: Ufo::CLI::Ps::Errors#scale
- Defined in:
- lib/ufo/cli/ps/errors.rb
#scale ⇒ Object
If running count < desired account for a long time And see was unable to place a task Probably not enough capacity
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/ufo/cli/ps/errors.rb', line 25 def scale return if service.running_count >= service.desired_count error_event = recent_events.find do |e| e. =~ /was unable to place a task/ end return unless error_event logger.info "There is an issue scaling the #{@stack_name.color(:green)} service to #{service.desired_count}. Here's the error:" logger.info error_event..color(:red) if service.launch_type == "EC2" logger.info " If AutoScaling is set up for the container instances,\n it can take a little time to add additional instances.\n You'll see this message until the capacity is added.\n EOL\n end\nend\n" |