Navigation Menu

Skip to content

Commit

Permalink
nfs: door should have a thread pool for message processing
Browse files Browse the repository at this point in the history
new configuration properties and defaults :

nfs.cell.limits.message.threads.max=8
nfs.cell.limits.message.queue.max=1000

Acked-by: Paul Millar
Target: master
Require-book: no
Require-notes: yes
  • Loading branch information
kofemann committed Jun 1, 2015
1 parent 8408007 commit 65b3ca8
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
Expand Up @@ -183,6 +183,13 @@
<property name="fsStatTimeUnit" value="${nfs.fs-stat-cache.time.unit}" />
</bean>

<bean id="messageThreadPool" class="org.dcache.util.BoundedExecutor"
destroy-method="shutdown">
<description>Thread pool for message processing</description>
<constructor-arg value="${nfs.cell.limits.message.threads.max}"/>
<constructor-arg value="${nfs.cell.limits.message.queue.max}"/>
</bean>

<beans profile="portmap-true">
<bean id="rpcbind" class="org.dcache.xdr.portmap.OncRpcEmbeddedPortmap"
destroy-method="shutdown"/>
Expand Down
7 changes: 7 additions & 0 deletions skel/share/defaults/nfs.properties
Expand Up @@ -178,3 +178,10 @@ nfs.fs-stat-cache.time = 3600
(forbidden)nfs.published.name = Use nfs.loginbroker.family
(forbidden)nfs.service.loginbroker.family = Use nfs.loginbroker.family
(forbidden)nfs.service.loginbroker.version = Use nfs.loginbroker.version
#
# NFS door message processing thread pool configuration
#
nfs.cell.limits.message.threads.max=8
nfs.cell.limits.message.queue.max=1000

(obsolete)nfs.db.driver=The property is not needed with JDBC 4 drivers
3 changes: 3 additions & 0 deletions skel/share/services/nfs.batch
Expand Up @@ -44,6 +44,8 @@ check -strong nfs.namespace-cache.time.unit
check -strong nfs.namespace-cache.size
check -strong pool.mover.nfs.port.min
check -strong pool.mover.nfs.port.max
check -strong nfs.cell.limits.message.threads.max
check -strong nfs.cell.limits.message.queue.max
check nfs.db.password
check nfs.db.password.file
check nfs.domain
Expand All @@ -52,5 +54,6 @@ check nfs.mover.queue
create org.dcache.cells.UniversalSpringCell ${nfs.cell.name} \
"classpath:org/dcache/chimera/nfsv41/door/nfsv41-common.xml \
-export=${nfs.cell.export} \
-messageExecutor=messageThreadPool \
-profiles=portmap-${nfs.enable.portmap}"

0 comments on commit 65b3ca8

Please sign in to comment.