【发布时间】:2016-07-06 20:51:15
【问题描述】:
我有一个 Django 应用程序在 OpenShift 设备上运行,并启用了网络平衡器。这意味着我在一个容量为 1GB 的齿轮上安装了 python 应用程序,在容量为 1GB 的不同齿轮上安装了 postgresql 数据库。
问题是我没有删除数据库中的日志条目,它增长到 1GB。现在我的网站无法访问。我尝试登录到数据库设备并删除不必要的条目,但由于超出磁盘配额而无法登录。
psql: could not connect to server: Connection refused
Is the server running on host "56ee-lucas03.rhcloud.com" (172.16.3.217) and accepting
TCP/IP connections on port 36081?
如何登录和删除不必要的条目?我需要购买 1GB 额外空间并删除这些条目吗?或者有没有更简单的解决方案如何登录超过磁盘配额的数据库?
EDIT1:
我试过rhc app-tidy appname,返回Warning: Gear 56ee is using 98.6% of disk quota。但是我仍然无法登录 psql 并出现同样的错误。
$ rhc app-start appname
Warning: Gear 56ee is using 98.6% of disk quota
Failed to execute: 'control start' for /var/lib/openshift/56ee/postgresql
【问题讨论】:
-
你试过在rhc上运行tidy命令吗?
-
@JoãoGonçalves 嗨,EDIT1 已添加到问题中。
标签: python django postgresql openshift