O'Reilly logo

OpenShift Cookbook by Shekhar Gulati

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required