HADOOP-11153. Make number of KMS threads configurable. (wang)
This commit is contained in:
parent
c6c3247dc0
commit
64aef18965
@ -554,6 +554,8 @@ Release 2.6.0 - UNRELEASED
|
|||||||
HADOOP-10954. Adding site documents of hadoop-tools (Masatake Iwasaki
|
HADOOP-10954. Adding site documents of hadoop-tools (Masatake Iwasaki
|
||||||
via aw)
|
via aw)
|
||||||
|
|
||||||
|
HADOOP-11153. Make number of KMS threads configurable. (wang)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
HADOOP-10838. Byte array native checksumming. (James Thomas via todd)
|
HADOOP-10838. Byte array native checksumming. (James Thomas via todd)
|
||||||
|
@ -36,6 +36,10 @@
|
|||||||
#
|
#
|
||||||
# export KMS_ADMIN_PORT=`expr ${KMS_HTTP_PORT} + 1`
|
# export KMS_ADMIN_PORT=`expr ${KMS_HTTP_PORT} + 1`
|
||||||
|
|
||||||
|
# The maximum number of Tomcat handler threads
|
||||||
|
#
|
||||||
|
# export KMS_MAX_THREADS=1000
|
||||||
|
|
||||||
# The location of the SSL keystore if using SSL
|
# The location of the SSL keystore if using SSL
|
||||||
#
|
#
|
||||||
# export KMS_SSL_KEYSTORE_FILE=${HOME}/.keystore
|
# export KMS_SSL_KEYSTORE_FILE=${HOME}/.keystore
|
||||||
|
@ -136,6 +136,13 @@ else
|
|||||||
print "Using KMS_ADMIN_PORT: ${KMS_ADMIN_PORT}"
|
print "Using KMS_ADMIN_PORT: ${KMS_ADMIN_PORT}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "${KMS_MAX_THREADS}" = "" ]; then
|
||||||
|
export KMS_MAX_THREADS=1000
|
||||||
|
print "Setting KMS_MAX_THREADS: ${KMS_MAX_THREADS}"
|
||||||
|
else
|
||||||
|
print "Using KMS_MAX_THREADS: ${KMS_MAX_THREADS}"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "${KMS_SSL_KEYSTORE_FILE}" = "" ]; then
|
if [ "${KMS_SSL_KEYSTORE_FILE}" = "" ]; then
|
||||||
export KMS_SSL_KEYSTORE_FILE=${HOME}/.keystore
|
export KMS_SSL_KEYSTORE_FILE=${HOME}/.keystore
|
||||||
print "Setting KMS_SSL_KEYSTORE_FILE: ${KMS_SSL_KEYSTORE_FILE}"
|
print "Setting KMS_SSL_KEYSTORE_FILE: ${KMS_SSL_KEYSTORE_FILE}"
|
||||||
|
@ -44,6 +44,7 @@ catalina_opts="${catalina_opts} -Dkms.log.dir=${KMS_LOG}";
|
|||||||
catalina_opts="${catalina_opts} -Dkms.temp.dir=${KMS_TEMP}";
|
catalina_opts="${catalina_opts} -Dkms.temp.dir=${KMS_TEMP}";
|
||||||
catalina_opts="${catalina_opts} -Dkms.admin.port=${KMS_ADMIN_PORT}";
|
catalina_opts="${catalina_opts} -Dkms.admin.port=${KMS_ADMIN_PORT}";
|
||||||
catalina_opts="${catalina_opts} -Dkms.http.port=${KMS_HTTP_PORT}";
|
catalina_opts="${catalina_opts} -Dkms.http.port=${KMS_HTTP_PORT}";
|
||||||
|
catalina_opts="${catalina_opts} -Dkms.max.threads=${KMS_MAX_THREADS}";
|
||||||
catalina_opts="${catalina_opts} -Dkms.ssl.keystore.file=${KMS_SSL_KEYSTORE_FILE}";
|
catalina_opts="${catalina_opts} -Dkms.ssl.keystore.file=${KMS_SSL_KEYSTORE_FILE}";
|
||||||
catalina_opts="${catalina_opts} -Dkms.ssl.keystore.pass=${KMS_SSL_KEYSTORE_PASS}";
|
catalina_opts="${catalina_opts} -Dkms.ssl.keystore.pass=${KMS_SSL_KEYSTORE_PASS}";
|
||||||
|
|
||||||
|
@ -73,6 +73,7 @@
|
|||||||
Define a non-SSL HTTP/1.1 Connector on port ${kms.http.port}
|
Define a non-SSL HTTP/1.1 Connector on port ${kms.http.port}
|
||||||
-->
|
-->
|
||||||
<Connector port="${kms.http.port}" protocol="HTTP/1.1"
|
<Connector port="${kms.http.port}" protocol="HTTP/1.1"
|
||||||
|
maxThreads="${kms.max.threads}"
|
||||||
connectionTimeout="20000"
|
connectionTimeout="20000"
|
||||||
redirectPort="8443"/>
|
redirectPort="8443"/>
|
||||||
<!-- A "Connector" using the shared thread pool-->
|
<!-- A "Connector" using the shared thread pool-->
|
||||||
|
@ -69,7 +69,7 @@
|
|||||||
connector should be using the OpenSSL style configuration
|
connector should be using the OpenSSL style configuration
|
||||||
described in the APR documentation -->
|
described in the APR documentation -->
|
||||||
<Connector port="${kms.http.port}" protocol="HTTP/1.1" SSLEnabled="true"
|
<Connector port="${kms.http.port}" protocol="HTTP/1.1" SSLEnabled="true"
|
||||||
maxThreads="150" scheme="https" secure="true"
|
maxThreads="${kms.max.threads}" scheme="https" secure="true"
|
||||||
clientAuth="false" sslProtocol="TLS"
|
clientAuth="false" sslProtocol="TLS"
|
||||||
keystoreFile="${kms.ssl.keystore.file}"
|
keystoreFile="${kms.ssl.keystore.file}"
|
||||||
keystorePass="${kms.ssl.keystore.pass}"/>
|
keystorePass="${kms.ssl.keystore.pass}"/>
|
||||||
|
@ -152,6 +152,8 @@ hadoop-${project.version} $ sbin/kms.sh start
|
|||||||
|
|
||||||
* KMS_ADMIN_PORT
|
* KMS_ADMIN_PORT
|
||||||
|
|
||||||
|
* KMS_MAX_THREADS
|
||||||
|
|
||||||
* KMS_LOG
|
* KMS_LOG
|
||||||
|
|
||||||
NOTE: You need to restart the KMS for the configuration changes to take
|
NOTE: You need to restart the KMS for the configuration changes to take
|
||||||
|
Loading…
Reference in New Issue
Block a user