Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ivikramsahu/redis-to-diskwriter
Release memory from redis and write on disk
https://github.com/ivikramsahu/redis-to-diskwriter
disk-space management-server perl redis
Last synced: about 2 months ago
JSON representation
Release memory from redis and write on disk
- Host: GitHub
- URL: https://github.com/ivikramsahu/redis-to-diskwriter
- Owner: ivikramsahu
- Created: 2019-10-16T13:15:21.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-28T17:52:11.000Z (over 4 years ago)
- Last Synced: 2024-01-07T04:14:28.809Z (12 months ago)
- Topics: disk-space, management-server, perl, redis
- Language: Perl
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# redis-to-disk writer
write data from redis memory to disk
* vim redis_to_disk_writer.pl
* copy the perl code in above redis.pl file.
* run using below command
` perl redis_to_disk_writer.pl 100 REDIS_QUEUE_NAME >> /path/to/write/on/disk.log `
* **100** is number of time it will lpop from queue name **REDIS_QUEUE_NAME**
* it will free up redis memory and write all your log to disk at your **/path/to/write/on/disk.log**