amazon-web-services


Autoscale Docker Swarm Services


We are using Ansible along with AWS Autoscaling Groups to scale our docker swarm cluster. Right now this is working because we run the services in global mode so we automatically get one of each container type per docker node. However this is not very efficient because we end up with more containers of some services than we need.
Is anyone doing something similar but having docker swarm scale out specific services based on their resource utilization? It looks like it would be possible by leveraging docker stats to figure out which containers need to scale but don't want to re-invent the wheel if there's already a good solution for this.
EDIT: not looking for how to scale the swarm cluster itself but individual services running on it.
Take a look at kubernetes.
Kubernetes (commonly referred to as "K8s") is an open source container
cluster manager originally designed by Google. It aims to provide a
"platform for automating deployment, scaling, and operations of
application containers across clusters of hosts". It usually works
with the Docker container tool and coordinates between a wide cluster
of hosts running Docker.
Now lets get to the point:
Kubernetes Horizontal Autoscaling:
With Horizontal Pod Autoscaling, Kubernetes automatically scales the number of pods in a replication controller, deployment or replica set based on observed CPU utilization (or, with alpha support, on some other, application-provided metrics).
More info

Related Links

EBS based instances in Amazon
Boot EC2 EBS volume locally?
Finding the right amazon ec2 ubuntu instance
How redirect a domain to Amazon EC2 Machine?
How long does metrics data in AWS cloudwatch maintained
How to create variable number of EC2 instance resources in Cloudformation template?
Amazon S3 Multiple Custom Domain Without Cloudfront
Working with Amazon Web Services
Amazon EC2 multiple instances with SVN app
Amazon s3 Folders Problem
A(Host) Records with AWS Load Balancer
Amazon SES (Simple Email Service) for bulk e-mail, NOT for transactional e-mails? [closed]
Amazon EBS pricing: monthly? daily? hourly?
How does Amazon EBS Snapshot determine modified files?
Number of Buckets in Amazon Free Tier
Opening port 80 EC2 Amazon web services [closed]

Categories

HOME
python-2.7
ionic2
extjs
plesk
keyboard
xcode8.1
exchange-server
concurrency
swi-prolog
systemd
windows-10
magento-2.0
jersey-2.0
mirc
biztalk-2010
ontology
anchor
bellman-ford
clickable-image
graphdb
responsivevoice
squid
bnf
phonegap-build
asciimath
gravity
robolectric
tableview
liferay-6.2
amazon-sns
chronicle-queue
tracing
unrar
react-bootstrap-table
bobo-browse.net
region
premake
riotjs
epplus
overwrite
serversocket
amazon-kms
keyboard-layout
django-smart-selects
llvm-ir
gitolite
right-click
vb.net-to-c#
angular-datatables
opal-framework
expandablelistview
vesta
rightnow-crm
photoswipe
android-webservice
watir-webdriver
htmlspecialchars
d3v4
nclam
fuzzer
livecycle
p6spy
django-testing
always-on-top
between
android-4.2-jelly-bean
static-methods
unsigned
strpos
timestamping
exists
vaadin4spring
utf-16
accessibilityservice
psd
android-expansion-files
diawi
json-spirit
python-cffi
linuxbrew
perceptron
lowercase
screen-orientation
embeddedwebserver
console.log
quercus
mutators
xml-signature
qt5.4
oracle-adf-mobile
box2dweb
category-theory
git-reset
forceclose
ivalueconverter
principalcontext
visual-c++-2005
acitree
sql-view
hints
significant-digits
cyrillic
getopt-long
pcspim
yuidoc
zend-server-ce
differentiation
haiku
firefly-mv
nosetests
ognl
aggregator
odac
spring-modules
autobench
motif

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App