The below is in the sample.xml but when using it my server startup would hang. Only after removing the rehashWait and rehashRpcTimeout attributes did the server finally startup.
<namedCache name="distributedCache">
<clustering mode="distribution">
<sync/>
<hash
numOwners="3"
rehashWait="120000"
rehashRpcTimeout="600000"
/>
<l1
enabled="true"
lifespan="600000"
/>
</clustering>
</namedCache>
Indeed that is a problem with having commented examples in a configuration files: we have no automatic validity checker :/
I will fix that example.