Ce contenu n'est pas disponible dans la langue sélectionnée.

11.7. Making Applications Highly Available


When a scalable application is configured to be highly available, it provides multiple HAProxy gears to which an external routing layer can route traffic. This prevents any downtime.
To use this feature, you first must have the capability to make your application highly available. Contact your system administrator for more information.
After your system administrator has enabled this capability on your account, you can then enable scalable applications to be highly available using the client tools:
# rhc app enable-ha App_Namerhc app enable-ha App_Name
Copy to Clipboard Toggle word wrap
Alternatively, you can make your application highly available using the following REST API call:
$ curl -X POST https://Hostname/broker/rest/domains/Domain_Name/applications/App_Name/events --user Username:Password --data-urlencode event=make-hacurl -X POST https://Hostname/broker/rest/domains/Domain_Name/applications/App_Name/events --user Username:Password --data-urlencode event=make-hacurl -X POST https://Hostname/broker/rest/domains/Domain_Name/applications/App_Name/events --user Username:Password --data-urlencode event=make-hacurl -X POST https://Hostname/broker/rest/domains/Domain_Name/applications/App_Name/events --user Username:Password --data-urlencode event=make-hacurl -X POST https://Hostname/broker/rest/domains/Domain_Name/applications/App_Name/events --user Username:Password --data-urlencode event=make-hacurl -X POST https://Hostname/broker/rest/domains/Domain_Name/applications/App_Name/events --user Username:Password --data-urlencode event=make-hacurl -X POST https://Hostname/broker/rest/domains/Domain_Name/applications/App_Name/events --user Username:Password --data-urlencode event=make-hacurl -X POST https://Hostname/broker/rest/domains/Domain_Name/applications/App_Name/events --user Username:Password --data-urlencode event=make-hacurl -X POST https://Hostname/broker/rest/domains/Domain_Name/applications/App_Name/events --user Username:Password --data-urlencode event=make-hacurl -X POST https://Hostname/broker/rest/domains/Domain_Name/applications/App_Name/events --user Username:Password --data-urlencode event=make-hacurl -X POST https://Hostname/broker/rest/domains/Domain_Name/applications/App_Name/events --user Username:Password --data-urlencode event=make-ha
Copy to Clipboard Toggle word wrap
If an application has already been scaled past a single gear, you may need to scale up the application to deploy additional instances of HAProxy. When an application is scaled past two gears, enable-ha does not add a second HAProxy cartridge to the application. To resolve this, a scale-up event needs to happen for the second HAProxy cartridge to be added:
# rhc app-scale-up test2
Copy to Clipboard Toggle word wrap
or
# rhc cartridge-scale cartridge -a test2 --min min_valuerhc cartridge-scale cartridge -a test2 --min min_valuerhc cartridge-scale cartridge -a test2 --min min_valuerhc cartridge-scale cartridge -a test2 --min min_value
Copy to Clipboard Toggle word wrap
Once the application has been scaled up, the second HAProxy instance will remain as long as the application is scaled to at least two gears.
Retour au début
Red Hat logoGithubredditYoutubeTwitter

Apprendre

Essayez, achetez et vendez

Communautés

À propos de la documentation Red Hat

Nous aidons les utilisateurs de Red Hat à innover et à atteindre leurs objectifs grâce à nos produits et services avec un contenu auquel ils peuvent faire confiance. Découvrez nos récentes mises à jour.

Rendre l’open source plus inclusif

Red Hat s'engage à remplacer le langage problématique dans notre code, notre documentation et nos propriétés Web. Pour plus de détails, consultez le Blog Red Hat.

À propos de Red Hat

Nous proposons des solutions renforcées qui facilitent le travail des entreprises sur plusieurs plates-formes et environnements, du centre de données central à la périphérie du réseau.

Theme

© 2025 Red Hat