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
1,072 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,190 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,190 points
1,440 views
0 votes
1 answer

Docker with Puppet: How can i remove the associated volumes when a container stops?

By default, when the service stops or ...READ MORE

answered Aug 16, 2019 in Puppet by Sirajul
• 59,190 points
1,507 views
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,190 points
1,982 views
0 votes
0 answers
+2 votes
1 answer
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
7,715 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,190 points
1,600 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,190 points
1,472 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