You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openserverless.apache.org by "almartino (via GitHub)" <gi...@apache.org> on 2025/06/17 21:25:16 UTC

[PR] Implement ops admin compact [openserverless-task]

almartino opened a new pull request, #101:
URL: https://github.com/apache/openserverless-task/pull/101

   This task is implemented by using a kubernetes job manifest.
   
   ## Manifest params
   - COUCHDB_USER and COUCHDB_PASSWORD are injected by prior retrieving the couchdb-secret in the nuvolaris namespace
   - COUCHDB_HOST and COUCHDB_PORT are filled from withing the task vars
   - JOB_TTL can be supplied by the user with the flag `--ttl` (e.g. ops admin compact --ttl=100
   
   ## Job image
   The job uses alpine:3.14 with the `curl` and `jq` utilities.
   
   #### Sidenotes: compaction in couchdb can be done automatically via [smoosh](https://docs.couchdb.org/en/stable/maintenance/compaction.html#automatic-compaction)
   
   closes apache/openserverless#134
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@openserverless.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Implement ops admin compact [openserverless-task]

Posted by "francescotimperi (via GitHub)" <gi...@apache.org>.
francescotimperi commented on code in PR #101:
URL: https://github.com/apache/openserverless-task/pull/101#discussion_r2153296523


##########
admin/kubernetes/compact-job.yaml:
##########


Review Comment:
   To get the most from this compaction script I suggest to implement also a script that deletes old activations, otherwise the only db which is going to be compacted it is the action db only. There is an sample script in python in the Openwhisk repo [here](https://github.com/francescotimperi/openwhisk/blob/master/tools/db/cleanUpActivations.py) 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@openserverless.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Implement ops admin compact [openserverless-task]

Posted by "almartino (via GitHub)" <gi...@apache.org>.
almartino commented on PR #101:
URL: https://github.com/apache/openserverless-task/pull/101#issuecomment-2984289452

   In the last commit, the cleanup job will delete the old activations, then a curl towards COUCHDB/nuvolaris_activations/_compact is issued


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@openserverless.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Implement ops admin compact [openserverless-task]

Posted by "francescotimperi (via GitHub)" <gi...@apache.org>.
francescotimperi merged PR #101:
URL: https://github.com/apache/openserverless-task/pull/101


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@openserverless.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org