openshift 是 redhat 所提供的一個SaaS 平台。
HOSTING WITH OPENSHIFT ONLINE OpenShift Online is Red Hat's next-generation application hosting platform that makes it easy to run your web applications in the cloud for free.
OpenShift by Red Hat
https://www.openshift.com/
每一個 free plan account 可以建立三個 gear,gear 就是在 openshift SaaS 中的一個單元。
目前,OpenShift 是建構部屬在 AWS 上,可是使用他你無需關心流量。
每個gear有1G的 ram,支援多種語言,甚至有提供 haproxy 來做分流使用。
有時候會遇到開啟的geer遇到不明原因loading很高或是很卡,你要怎麼更換目前使用的geer呢?
0. 已經 git clone 過原本 app 的 repo
1. delete 原本的 app
2. 在同一個 account 中 create 另外一個新的 app
3. 建立完後,在原本的 git repo 中的 .git/config 把 remote origin 的部份改成新的app
[remote "origin"]
#old
#url = ssh://ooooxxxxx@oldname.rhcloud.com/~/git/python.git/
#new add
url = ssh://xxxxooooo@newname.rhcloud.com/~/git/python.git/
fetch = +refs/heads/*:refs/remotes/origin/*
4. 在repo 端
git push origin master -f
5. 連上 newname.rhcloud.com 確認一下是否完成
也可使用
$ rhc app show -a [appname] --gears -l account
確認目前使用的gear id 是不是原本的已經不同。
如此並可在 openshift 上,使用新的狀況良好的gear。
OpenShift Online Monthly Plan Comparison
https://www.openshift.com/pricing/plan-comparison.html
Free Plan | Bronze Plan | Silver Plan | |
---|---|---|---|
Base Price | Free | Free | $20 /month |
Application Idling | 24 hours | Never | Never |
Included Gears | 3 small gears | 3 small gears | 3 small gears |
Max Gears | 3 | 16 | 16+ |
Scaling | Yes (3 min / 3 max) | Yes (3 min / 16 max) | Yes (3 min / 16 max) |
Gear Sizes | small | small ($0.02 /hour)
small.highcpu ($0.025 /hour) medium ($0.05 /hour) large ($0.10 /hour) |
small ($0.02 /hour)
small.highcpu ($0.025 /hour) medium ($0.05 /hour) large ($0.10 /hour) |
Storage | 1GB per gear | 1GB per gear; $1.00 /month per additional GB | 6GB per gear; $1.00 /month per additional GB |
SSL | Shared | For custom domains | For custom domains |
Teams | Not included | Up to 15 | Up to 15 |
JBoss EAP 6 | Included | 3 gears free; $0.03 /hr per additional gear | 3 gears free; $0.03 /hr per additional gear |
Support From | Community | Community | Red Hat & Community |
Sign up | Upgrade | Upgrade |
a
沒有留言:
張貼留言