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, 2019 in Puppet by Michael
499 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, 2019 by Sirajul
• 59,230 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, 2019 in Puppet by Sirajul
• 59,230 points
650 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, 2019 in Puppet by Sirajul
• 59,230 points
1,286 views
0 votes
0 answers
+2 votes
1 answer
+2 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
• 58,020 points
2,714 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, 2019 in Puppet by Sirajul
• 59,230 points
919 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, 2019 in Puppet by Sirajul
• 59,230 points
747 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP