2014-05-05 Alejandro Gallardo <alejandro.gallardo@artica.es>
* bin/pandora_server: Added checks and warnings for too many threads and verbosity 10. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9860 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
4833384362
commit
d3338ea1bf
|
@ -1,3 +1,8 @@
|
||||||
|
2014-05-05 Alejandro Gallardo <alejandro.gallardo@artica.es>
|
||||||
|
|
||||||
|
* bin/pandora_server: Added checks and warnings for
|
||||||
|
too many threads and verbosity 10.
|
||||||
|
|
||||||
2014-05-03 Junichi Satoh <junichi@rworks.jp>
|
2014-05-03 Junichi Satoh <junichi@rworks.jp>
|
||||||
|
|
||||||
* util/pandora_manage.pl: Added new CLI functions to manage special
|
* util/pandora_manage.pl: Added new CLI functions to manage special
|
||||||
|
|
|
@ -380,6 +380,37 @@ foreach my $server (@Servers) {
|
||||||
$server->upEvent ();
|
$server->upEvent ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Check if the Data Server has too many threads
|
||||||
|
if ($Config{'dataserver_threads'} > 5) {
|
||||||
|
logger (\%Config, "[W] Server " . $Config{'servername'} . " have configured " . $Config{'dataserver_threads'}
|
||||||
|
. " threads for the data server. You should not use more than 5 threads for this server", 1);
|
||||||
|
print_message (\%Config, " [W] Server " . $Config{'servername'} . " have configured " . $Config{'dataserver_threads'}
|
||||||
|
. " threads for the data server. You should not use more than 5 threads for this server", 1);
|
||||||
|
pandora_event (\%Config, "Server " . $Config{'servername'} . " have configured "
|
||||||
|
. $Config{'dataserver_threads'} . " threads for the data server", 0, 0, 3, 0, 0, 'system', 0, $DBH);
|
||||||
|
}
|
||||||
|
|
||||||
|
# Check if the Pandora Server has too many threads
|
||||||
|
my $totalThreads = 0;
|
||||||
|
foreach my $server (@Servers) {
|
||||||
|
$totalThreads += $server->getNumThreads ();
|
||||||
|
}
|
||||||
|
if ($totalThreads > 40) {
|
||||||
|
logger (\%Config, '[W] Server ' . $Config{'servername'} . ' have configured a total of ' . $totalThreads
|
||||||
|
. ' threads. This setup is not recommended, you should reduce the number of total threads below 40', 1);
|
||||||
|
print_message (\%Config, ' [W] Server ' . $Config{'servername'} . ' have configured a total of ' . $totalThreads
|
||||||
|
. ' threads. This setup is not recommended, you should reduce the number of total threads below 40', 1);
|
||||||
|
pandora_event (\%Config, 'Server ' . $Config{'servername'} . ' have configured a total of ' . $totalThreads
|
||||||
|
. ' threads', 0, 0, 3, 0, 0, 'system', 0, $DBH);
|
||||||
|
}
|
||||||
|
|
||||||
|
# Check if the log verbosity is set to 10
|
||||||
|
if ($Config{'verbosity'} == 10) {
|
||||||
|
logger (\%Config, '[W] Log verbosity is set to 10. This will degrade the server performance. Please set to a lower value ASAP', 1);
|
||||||
|
print_message (\%Config, ' [W] Log verbosity is set to 10. This will degrade the server performance. Please set to a lower value ASAP', 1);
|
||||||
|
pandora_event (\%Config, 'Log verbosity is set to 10. This will degrade the server performance', 0, 0, 1, 0, 0, 'system', 0, $DBH);
|
||||||
|
}
|
||||||
|
|
||||||
# Main loop
|
# Main loop
|
||||||
my $time_ref = time ();
|
my $time_ref = time ();
|
||||||
while (1) {
|
while (1) {
|
||||||
|
|
Loading…
Reference in New Issue