[英]PostgreSQL high availability on Openshift gear
I have been testing the Openshift Online platform for several months now (using the free 3 gears option). 我已经在测试Openshift Online平台了几个月了(使用免费的3档选项)。 I setup several python applications and also the very basic python application (just using the Openshift python template) and outside monitoring, which also kept the applications alive (= non idling).
我设置了几个python应用程序,还设置了非常基本的python应用程序(仅使用Openshift python模板)和外部监视,这也使应用程序保持活动状态(=非空闲)。
My findings are that the applications are restarted every cca 14 days. 我的发现是,应用程序每cca 14天重新启动一次。 And basically not available for cca 5-20 mins.
基本上在5-20分钟内无法使用。 In order to have 0 downtime the HA scalable setup is advised.
为了使停机时间为零,建议使用HA可扩展设置。
This is typically declared as 2+ gears for application server (eg python ) with HA proxy setup + 1 gear for the database (PostgreSQL in my case). 对于具有HA代理设置的应用程序服务器(例如python),通常将其声明为2个齿轮,而对于数据库(在我的情况下为PostgreSQL),将其声明为2个齿轮。
I wonder whether the DB gear would not be also restarted from time to time as it is in non-scaled application case? 我想知道是否也会像在非扩展应用程序案例中那样不时重新启动DB设备?
Uptime Logs for python application:
Latest Events (up, down, start, pause) Export Logs
Event Date-Time Reason Duration
Up 04-07-2014 19:03:10 OK 53 hrs, 11 mins
Down 04-07-2014 18:54:48 --- 0 hrs, 8 mins
Up 04-07-2014 18:48:51 OK 0 hrs, 5 mins
Down 04-07-2014 18:45:29 --- 0 hrs, 3 mins
Up 02-07-2014 22:52:56 OK 43 hrs, 52 mins
Down 02-07-2014 22:32:38 --- 0 hrs, 20 mins
Up 23-06-2014 11:41:43 OK 226 hrs, 50 mins
Down 23-06-2014 11:27:05 --- 0 hrs, 14 mins
Up 03-06-2014 04:00:05 OK 487 hrs, 27 mins
Down 03-06-2014 03:50:22 --- 0 hrs, 9 mins
Currently our database gears aren't scalable. 目前,我们的数据库设备无法扩展。 This is something that will be resolved in the near future.
这将在不久的将来得到解决。 However for now, its best to use a DBaaS as a work around.
但是就目前而言,最好使用DBaaS来解决。 Thankfully we have several options on marketplace.openshift.com and you can easily tie those into your existing applications.
值得庆幸的是,我们在marketplace.openshift.com上有多个选项,您可以轻松地将它们绑定到现有应用程序中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.