carlosibex opened a new issue #1892: couchdb does not stop growing and occupy my entire hard drive. URL: https://github.com/apache/couchdb/issues/1892 I'm using couchdb with lucene, I've noticed that my server has crashed many times because it takes up the entire disk space. I have invented a "solution" and it is a programmed task that "compresses" the databases, however, it has happened to me again ... the server has been dropped. What else can I do to prevent this from happening? My solution: ``` $alldbs = json_decode(file_get_contents("http://MyIP:5984/_all_dbs"), true); $exceptdbs = ['_replicator', '_users']; foreach ($alldbs as $db) { if(in_array($db, $exceptdbs)) continue; $ch = curl_init(); $header = array('Content-type: application/json','Accept: */*'); curl_setopt($ch, CURLOPT_URL, 'http://MyIP:5984/'.$db.'/_compact'); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, $header); curl_setopt($ch, CURLOPT_USERPWD, 'admin'.':'.'MyPass'); $response = curl_exec($ch); $response = json_decode($response, true); curl_close($ch); } ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
