Skip to content

Avoid writing .log file to disk when possible #57

@SukkaW

Description

@SukkaW

I noticed that the agent consistently collects server status data, compresses and encodes it, and stores it in the hetrixtools_agent.log file:

echo "j=$jsoncomp" > "$ScriptPath"/hetrixtools_agent.log

This process signifies that the agent writes several hundred kilobytes of data to the disk every minute, potentially diminishing SSD lifespan.

Would it be possible to simply save the data within a shell variable and directly send the request using that variable (i.e., store all information in memory)? This could enhance performance and extend disk lifespan.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions