Note: Please go to docs.rightscale.com to access the current RightScale documentation set. Also, feel free to Chat with us!
Home > FAQs > How can I prevent my server from downloading all Chef recipes every time it converges?

How can I prevent my server from downloading all Chef recipes every time it converges?

Table of Contents

Background

When a Chef based server is booted, we will download the entire run list of recipes to the server upon boot when it converges. Subsequently, we will also continue to download every single recipe to the server whenever Chef converges again, which would occur if you run an Operational recipe or any recipe after boot as well.

This can get frustrating, and some may wish to only download those recipes a single time. This article shows you how to tag a server so that it will only download those recipes once.

Answer

To stop recipes from downloading multiple times on each Chef converge, you will want to add the following tag to the Server component in the Rightscale dashboard (i.e. https://my.rightscale.com/acct/<accountID>/servers/123456) -

Note: You must add the tag before a server is launched. If you want to enable this functionality on a running server, you will need to add the tag to the "Next" server and relaunch it. The tag will not take effect if you add it to a running instance.

 rs_agent_dev:download_cookbooks_once=true

When this tag is set to 'True' we will only download the cookbooks a single time.

To reverse it, simply remove the tag or set it to a value of 'False,' then run a recipe again.

If you have any questions, comments or feedback please let us know at (866) 787-2253 or support@rightscale.com. You can also open a support incident anytime by using the 'Support -> Email' link in the top-right corner of the dashboard.

You must to post a comment.
Last modified
15:30, 3 Oct 2013

Tags

Classifications

This page has no classifications.

Announcements

None


© 2006-2014 RightScale, Inc. All rights reserved.
RightScale is a registered trademark of RightScale, Inc. All other products and services may be trademarks or servicemarks of their respective owners.