<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">There are a few deployers out there that are using the Hazelcast storage service in varying levels of deployment. I’ll let them chime in with notes on it if they want. But I can let you know that there are folks using it in production.</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">What you’re looking for in the code are lines like this:</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="margin: 0px;">IMap<String, StorageRecord> backingMap = hazelcastInstance.getMap(context);</div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;">The Shibboleth storage service allows any subsystem to create its own context in the service, so as long as you know the names of the contexts, you can configure the maps. When this was written, there was not a list of these available, which might have changed (a reference would be nice).</div> <div><br></div>Hope that helps<div><br> <div id="bloop_sign_1461796189796057856" class="bloop_sign"><div style="font-family:helvetica,arial;font-size:13px">-Jj</div></div> <br><p class="airmail_on">On April 27, 2016 at 16:08:25, Paul B. Henson (<a href="mailto:henson@cpp.edu">henson@cpp.edu</a>) wrote:</p> <blockquote type="cite" class="clean_bq"><span><div><div></div><div>I was curious how many people are using Unicon's HazelcastStorageService? I finally finished configuring my standalone dev instance of idp 3 and added clustering to it yesterday. The HazelcastStorageService was pretty simple to set up, after compiling it and adding it to the WAR, I just updated the global.conf with a basic config:
<br>
<br>    <hz:hazelcast id="hazelcast">
<br>        <hz:config>
<br>            <hz:properties>
<br>                <hz:property name="hazelcast.logging.type">slf4j</hz:property>
<br>            </hz:properties>
<br>            <hz:network port="5701" port-auto-increment="false">
<br>                <hz:join>
<br>                    <hz:multicast enabled="false"/>
<br>                    <hz:tcp-ip enabled="true">
<br>                        <hz:members>__IDP_NODE1__, __IDP_NODE2__, __IDP_NODE3__</hz:members>
<br>                    </hz:tcp-ip>
<br>                </hz:join>
<br>            </hz:network>
<br>        </hz:config>
<br>    </hz:hazelcast>
<br>
<br>    <bean id="shibboleth.HazelcastStorageService"
<br>          class="net.unicon.iam.shibboleth.storage.HazelcastMapBackedStorageService">
<br>        <constructor-arg name="hazelcastInstance" ref="hazelcast" />
<br>    </bean>
<br>
<br>I run a three node cluster over TCP, with security provided by point-to-point IPsec tunnels at the underlying network level. I enabled it for the idp.session.StorageService, idp.replayCache.StorageService, and idp.cas.StorageService (I have consent and artifacts disabled).
<br>
<br>It seems to be working fine, I did some testing and verified replication is occurring and everything looks good. I'm not really sure what's going on under the hood though. I also use Unicon's Hazelcast ticket registry on my current CAS servers, and for that I need to explicitly declare the map:
<br>
<br>                        <hz:map name="tickets"
<br>                                max-idle-seconds="${tgt.timeToKillInSeconds}"
<br>                                max-size-policy="USED_HEAP_PERCENTAGE"
<br>                                max-size="85"
<br>                                eviction-policy="LRU"
<br>                                eviction-percentage="10"/>
<br>
<br>Which allows me to configure how much memory it's going to use, and what it does when it starts to exceed that amount of memory. This shibboleth version doesn't seem to require explicitly configuring maps. From a quick look at the code, I'm not sure if it creates one global map that is used by everything, or if each instance creates its own map. In either case, I'm not sure what settings end up getting used as far as how much memory each map is allowed to use or how one might change them, or what happens in the case of low memory pressure.
<br>
<br>I'd be interested in any reports of performance in production, particularly under high load scenarios or memory stress.
<br>
<br>Thanks much...
<br>
<br>--
<br>Paul B. Henson  |  (909) 979-6361  |  http://www.cpp.edu/~henson/
<br>Operating Systems and Network Analyst  |  henson@cpp.edu
<br>California State Polytechnic University  |  Pomona CA 91768
<br>
<br>
<br>--  
<br>To unsubscribe from this list send an email to users-unsubscribe@shibboleth.net
<br></div></div></span></blockquote></div></body></html>