mirror of https://github.com/apache/cassandra
Merge branch 'cassandra-2.0' into cassandra-2.1
This commit is contained in:
commit
98eb8ba52d
|
|
@ -448,6 +448,8 @@ public class DatabaseDescriptor
|
|||
throw new ConfigurationException("The hsha rpc_server_type is not compatible with an rpc_max_threads " +
|
||||
"setting of 'unlimited'. Please see the comments in cassandra.yaml " +
|
||||
"for rpc_server_type and rpc_max_threads.");
|
||||
if (ThriftServer.HSHA.equals(conf.rpc_server_type) && conf.rpc_max_threads > (FBUtilities.getAvailableProcessors() * 2 + 1024))
|
||||
logger.warn("rpc_max_threads setting of {} may be too high for the hsha server and cause unnecessary thread contention, reducing performance", conf.rpc_max_threads);
|
||||
|
||||
/* end point snitch */
|
||||
if (conf.endpoint_snitch == null)
|
||||
|
|
|
|||
Loading…
Reference in New Issue