En kubernetes cronjobb för att tömma redis stream
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Kristoffer Hallqvist 33327a3dd1 Merge branch 'SE-1571_Clean_redis_more_often' of smartenergi/redis_clean_trigger into master 4 years ago
kube Changed exec frequency. Changed create_pipeline name 4 years ago
pipeline Changed exec frequency. Changed create_pipeline name 4 years ago
.gitignore First version 4 years ago
Dockerfile First version 4 years ago
README.md Dokumentation 4 years ago
entrypoint.sh First version 4 years ago
requirements.txt Wrong name in kubernetes, added requests to requirements 4 years ago
trigger_redis_clean.py First version 4 years ago

README.md

Redis clean trigger

Will clean the Redis Stream and leave only the specified amount of posts

By number and not by time

Redis can't remove old post by date, only by how many you want to be left. Not optimal.