Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

40 строки
2.2 KiB

  1. # Configuration file for Log2Ram (https://github.com/azlux/log2ram) under MIT license.
  2. # This configuration file is read by the log2ram service
  3. # Size for the ram folder, it defines the size the log folder will reserve into the RAM.
  4. # If it's not enough, log2ram will not be able to use ram. Check you /var/log size folder.
  5. # The default is 40M and is basically enough for a lot of applications.
  6. # You will need to increase it if you have a server and a lot of log for example.
  7. SIZE=20M
  8. # This variable can be set to true if you prefer "rsync" rather than "cp".
  9. # I use the command cp -u and rsync -X, so I don't copy the all folder every time for optimization.
  10. # You can choose which one you want. Be sure rsync is installed if you use it.
  11. USE_RSYNC=false
  12. # If there are some errors with available RAM space, a system mail will be send
  13. # Change it to false and you will have only a log if there is no place on RAM anymore.
  14. MAIL=false
  15. # **************** Zram backing conf *************************************************
  16. # ZL2R Zram Log 2 Ram enables a zram drive when ZL2R=true ZL2R=false is mem only tmpfs
  17. ZL2R=true
  18. # COMP_ALG this is any compression algorithm listed in /proc/crypto
  19. # lz4 is fastest with lightest load but deflate (zlib) and Zstandard (zstd) give far better compression ratios
  20. # lzo is very close to lz4 and may with some binaries have better optimisation
  21. # COMP_ALG=lz4 for speed or Zstd for compression, lzo or zlib if optimisation or availabilty is a problem
  22. COMP_ALG=lz4
  23. # LOG_DISK_SIZE is the uncompressed disk size. Note zram uses about 0.1% of the size of the disk when not in use
  24. # LOG_DISK_SIZE is expected compression ratio of alg chosen multiplied by log SIZE
  25. # lzo/lz4=2.1:1 compression ratio zlib=2.7:1 zstandard=2.9:1
  26. # Really a guestimate of a bit bigger than compression ratio whilst minimising 0.1% mem usage of disk size
  27. LOG_DISK_SIZE=60M
  28. # PRUNE_LEVEL if log size is below this level then old logs will be moved to hdd.log
  29. # Moving the old logs will restart log rotation as old logs will no longer exist in /var/log/oldlog
  30. # In normal operation hitting 50% or above can take many hourly cycles so a higher prune level is a balance
  31. # 55-60% is probably a good level as too high will restart logrotation and create less history
  32. PRUNE_LEVEL=36M