我们有一个系统,它基本上将 250MB 的数据写入我们的 CouchDB 2 实例,它在 global_changes 数据库中每天生成约 50GB。
这使得 CouchDB2 消耗了所有磁盘。
一旦进入这种状态,CouchDB2 就会消失,再也不会回来。
我们想知道是否有任何方法可以限制 global_changes 表的大小,或者是否有管理此表的方法,例如一组最佳实践。
最佳答案
tldr:删除它
http://docs.couchdb.org/en/latest/install/setup.html#single-node-setup
状态:
Note that the last of these (referring to _global_changes) is not necessary if you do not expect to be using the global changes feed. Feel free to delete this database if you have created it, it has grown in size, and you do not need the function (and do not wish to waste system resources on compacting it regularly.
关于CouchDB 2 global_changes 系统表变得非常大,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43452631/