Book Image

OpenShift Cookbook

By : Shekhar Gulati
Book Image

OpenShift Cookbook

By: Shekhar Gulati

Overview of this book

Table of Contents (19 chapters)
OpenShift Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Running OpenShift on a Virtual Machine
Index

Enabling manual scaling with marker files


In this recipe, you will learn how you can disable autoscaling and add gears manually to a scalable application using the rhc command-line tool.

Getting ready

To complete this recipe, you will need rhc installed on your machine. This recipe will utilize the application created in the Creating scalable applications recipe.

How to do it…

Perform the following steps to manually add a new gear to a scalable application:

  1. Open a command-line terminal and navigate to the application directory created in the Creating scalable applications recipe.

  2. Create a new marker file with the name disable_auto_scaling in the .openshift/marker directory inside your application director. On Mac and Linux machines, you can use the following command:

    $ touch .openshift/markers/disable_auto_scaling
    
  3. On Windows machines, you can create a new file using the File menu.

  4. Commit the file to the local Git repository, and push the changes to the OpenShift application gear Git repository...