Docker with Puppet: Scaling a docker service

0 votes

I have a docker service named as "redis" there's a need to scale this service amounting to have atleast 10 of them. How can i use puppet to do container scaling? 

Aug 16 in Puppet by Michael
17 views

1 answer to this question.

0 votes

To scale a service, add the following code to the puppet manifest file:

docker::services {'redis_scale':
  create => false,
  scale => true,
  service_name => 'redis',
  replicas => '10',
}

To scale the service without creating a new one, include the the scale => true parameter and the create => false parameter.

In the code snippet given above, the service is scaled to 10.

answered Aug 16 by Sirajul
• 36,220 points

Related Questions In Puppet

0 votes
1 answer

Docker with Puppet: How do I install Docker EE on a Debian System?

Docker provides a enterprise addition of the ...READ MORE

answered Aug 16 in Puppet by Sirajul
• 36,220 points
33 views
0 votes
1 answer
0 votes
1 answer

Docker with Puppet: Run a conatiner using a native volume

When using the volumes array with docker::run, the command on ...READ MORE

answered Aug 16 in Puppet by Sirajul
• 36,220 points
17 views
0 votes
0 answers
0 votes
1 answer
0 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 56,900 points
217 views
0 votes
1 answer

Puppet+Docker:Creating a Docker service using a Puppet manifest

Docker services are used to create distributed ...READ MORE

answered Aug 14 in Puppet by Sirajul
• 36,220 points
33 views
0 votes
1 answer

Puppet+Docker: How to Update/Remove a docker service?

Update a docker service: To update the service, add ...READ MORE

answered Aug 14 in Puppet by Sirajul
• 36,220 points
40 views