-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Report available system memory under
dcc_free_mem
This patch adds a trivial wrapper HTTP server, written in Python, that intercepts the requests going towards the `--stats-port` of the running `distccd` server. It relays the request verbatim at first, and if the response is a valid statistics message, extends it at the bottom with a line dcc_free_mem 16384 MB where the numeric value is obtained from `free`'s output under **Available** system memory.
- Loading branch information
1 parent
dafb1c9
commit c9457f8
Showing
10 changed files
with
529 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/var/log/cron.log { | ||
daily | ||
rotate 30 | ||
rotate 7 | ||
|
||
compress | ||
copytruncate | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/var/log/distccd.log { | ||
daily | ||
rotate 30 | ||
rotate 7 | ||
|
||
compress | ||
copytruncate | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/var/log/access.log | ||
/var/log/error.log { | ||
daily | ||
rotate 7 | ||
|
||
compress | ||
copytruncate | ||
delaycompress | ||
missingok | ||
notifempty | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/var/log/syslog { | ||
daily | ||
rotate 7 | ||
|
||
compress | ||
copytruncate | ||
delaycompress | ||
missingok | ||
notifempty | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
hide_kernel_threads=1 | ||
hide_userland_threads=1 | ||
highlight_base_name=1 | ||
highlight_megabytes=1 | ||
shadow_other_users=0 | ||
show_program_path=0 | ||
tree_view=1 |
Oops, something went wrong.