hosais
hosais

Reputation: 164

How to share the files between gears in scalable drupal in openshift?

I would like to have a scalable drupal at openshift. As I know, in a scalable application in openshift, there is a HAproxy cartridge in the head gear, another gear for database. The thing I am not very clear is how the web (code) gears share the files.

The code part are changed when the code commited. Everytime when the code commit with git, the code is duplicated to every web gear. I think openshift will do it automatically and I assume during the commit process, the app is stopped.

How about the user files in the sites/files in drupal. This part is not in the git. I need to copy it to every gears each time when I deploy? If I am wrong, how to solve this problem?

Upvotes: 0

Views: 200

Answers (1)

mxxk
mxxk

Reputation: 10234

A related question, Scaling Drupal 7 on Openshift, was asked not so long after yours.

You're exactly right that the core Drupal files are copied to each gear with git. But for the remaining user content, the Drupal quickstart README recommends to use "a background task to copy file contents from gear to gear". I presume they mean an OpenShift cron job, but to me that seems very clunky.

The other suggestion the OP the linked question came across is to point Drupal at S3 for storing and reading user content.

Upvotes: 1

Related Questions