config.peer_example.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quasar-galaxy Show documentation
Show all versions of quasar-galaxy Show documentation
lightweight threads and actors for the JVM.
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xmlns:c="http://www.springframework.org/schema/c" xmlns:context="http://www.springframework.org/schema/context" xmlns:util="http://www.springframework.org/schema/util" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd" default-lazy-init="false" default-autowire="constructor"> <!-- <bean id="cluster" class="co.paralleluniverse.galaxy.zookeeper.ZooKeeperCluster"> <constructor-arg name="nodeId" value="${grid.nodeId}"/> <constructor-arg name="zkConnectString" value="127.0.0.1:2181"/> <property name="hasServer" value="true"/> <property name="sessionTimeoutMs" value="1500"/> <property name="connectionTimeoutMs" value="1000"/> <property name="retryPolicy"> <bean class="org.apache.curator.retry.ExponentialBackoffRetry"> <constructor-arg index="0" value="20"/> <constructor-arg index="1" value="20"/> </bean> </property> </bean> --> <bean id="cluster" class="co.paralleluniverse.galaxy.jgroups.JGroupsCluster"> <constructor-arg name="nodeId" value="${grid.nodeId}"/> <constructor-arg name="jgroupsClusterName" value="cluster1"/> <property name="hasServer" value="true"/> <property name="jgroupsConf"> <value> <![CDATA[ <config xmlns="urn:org:jgroups" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:org:jgroups http://www.jgroups.org/schema/JGroups-3.1.xsd"> <UDP mcast_port="${jgroups.udp.mcast_port:45588}" tos="8" ucast_recv_buf_size="20M" ucast_send_buf_size="640K" mcast_recv_buf_size="25M" mcast_send_buf_size="640K" loopback="true" discard_incompatible_packets="true" max_bundle_size="64K" max_bundle_timeout="30" ip_ttl="${jgroups.udp.ip_ttl:8}" enable_bundling="true" enable_diagnostics="true" thread_naming_pattern="cl" timer_type="new" timer.min_threads="4" timer.max_threads="10" timer.keep_alive_time="3000" timer.queue_max_size="500"/> <PING timeout="2000" num_initial_members="4"/> <MERGE3 max_interval="30000" min_interval="10000"/> <FD_SOCK/> <FD_ALL/> <VERIFY_SUSPECT timeout="1500" /> <BARRIER /> <pbcast.NAKACK2 xmit_interval="1000" xmit_table_num_rows="100" xmit_table_msgs_per_row="2000" xmit_table_max_compaction_time="30000" max_msg_batch_size="500" use_mcast_xmit="false" discard_delivered_msgs="true"/> <UNICAST /> <pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000" max_bytes="4M"/> <pbcast.GMS print_local_addr="true" join_timeout="3000" view_bundling="true"/> <SEQUENCER /> <UFC max_credits="2M" min_threshold="0.4"/> <MFC max_credits="2M" min_threshold="0.4"/> <FRAG2 frag_size="60K" /> <pbcast.STATE_TRANSFER /> <COUNTER bypass_bundling="true" timeout="5000"/> </config> ]]> </value> </property> <property name="jgroupsThreadPool"> <bean class="co.paralleluniverse.galaxy.core.ConfigurableThreadPool"> <constructor-arg name="corePoolSize" value="2"/> <constructor-arg name="maximumPoolSize" value="8"/> <constructor-arg name="keepAliveMillis" value="5000"/> <constructor-arg name="maxQueueSize" value="500"/> </bean> </property> </bean> <bean id="cache" class="co.paralleluniverse.galaxy.core.Cache"> <!-- depends-on="memory" --> <constructor-arg name="monitoringType" value="METRICS"/> <!-- METRICS/JMX --> <constructor-arg name="maxCapacity" value="100000000"/> <property name="maxItemSize" value="1024"/> <property name="reuseLines" value="true"/> <property name="reuseSharerSets" value="true"/> <property name="rollbackSupported" value="true"/> <property name="compareBeforeWrite" value="true"/> </bean> <bean id="messenger" class="co.paralleluniverse.galaxy.core.MessengerImpl"> <constructor-arg name="threadPool"> <bean class="co.paralleluniverse.galaxy.core.NodeOrderedThreadPoolExecutor"> <constructor-arg name="corePoolSize" value="2"/> <constructor-arg name="maximumPoolSize" value="8"/> <constructor-arg name="keepAliveTime" value="5000"/> <constructor-arg name="unit" value="MILLISECONDS"/> <constructor-arg name="maxQueueSize" value="500"/> <constructor-arg name="workQueue"> <bean class="co.paralleluniverse.common.concurrent.QueueFactory" factory-method="getInstance" c:maxSize="500"/> </constructor-arg> </bean> </constructor-arg> </bean> <bean id="comm" class="co.paralleluniverse.galaxy.netty.UDPComm"> <constructor-arg name="serverComm" ref="serverComm"/> <constructor-arg name="port" value="${grid.port}"/> <property name="sendToServerInsteadOfMulticast" value="false"/> <property name="minimumNodesToMulticast" value="2"/> <property name="multicastGroup"> <bean class="java.net.InetSocketAddress"> <constructor-arg index="0" value="225.0.0.1"/> <constructor-arg index="1" value="7050"/> </bean> </property> <property name="timeout" value="200"/> <property name="resendPeriodMillisecs" value="60"/> <property name="exponentialBackoff" value="true"/> <property name="jitter" value="false"/> <property name="minDelayMicrosecs" value="500"/> <property name="maxDelayMicrosecs" value="2000"/> <property name="maxQueueSize" value="10"/> <property name="maxPacketSize" value="2048"/> <property name="maxRequestOnlyPacketSize" value="400"/> <property name="workerExecutor"> <bean class="co.paralleluniverse.galaxy.core.ConfigurableThreadPool"> <constructor-arg name="corePoolSize" value="2"/> <constructor-arg name="maximumPoolSize" value="8"/> <constructor-arg name="keepAliveMillis" value="5000"/> <constructor-arg name="maxQueueSize" value="500"/> </bean> </property> <property name="receiveExecutor"> <bean class="org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor"> <constructor-arg index="0" value="8"/> <!-- name="corePoolSize" --> <constructor-arg index="1" value="0"/> <!-- name="maxChannelMemorySize" --> <constructor-arg index="2" value="0"/> <!-- name="maxTotalMemorySize" --> <constructor-arg index="3" value="5000"/> <!-- name="keepAliveTime" --> <constructor-arg index="4" value="MILLISECONDS"/> <!-- name="unit" --> </bean> </property> </bean> <!-- <bean id="comm" class="co.paralleluniverse.galaxy.jgroups.JGroupsComm"> <constructor-arg name="serverComm" ref="serverComm"/> <property name="sendToServerInsteadOfMulticast" value="false"/> <property name="timeout" value="1000"/> </bean> --> <bean id="serverComm" class="co.paralleluniverse.galaxy.netty.TcpServerClientComm"/> <bean id="slaveComm" class="co.paralleluniverse.galaxy.netty.TcpSlaveComm"> <constructor-arg name="port" value="${grid.slave_port}"/> <property name="receiveExecutor"> <bean class="org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor"> <constructor-arg index="0" value="8"/> <!-- name="corePoolSize" --> <constructor-arg index="1" value="0"/> <!-- name="maxChannelMemorySize" --> <constructor-arg index="2" value="0"/> <!-- name="maxTotalMemorySize" --> <constructor-arg index="3" value="5000"/> <!-- name="keepAliveTime" --> <constructor-arg index="4" value="MILLISECONDS"/> <!-- name="unit" --> </bean> </property> </bean> <!-- <bean id="localStorage" class="co.paralleluniverse.galaxy.HeapLocalStorage"> <constructor-arg name="monitoringType" value="METRICS"/> </bean> --> <bean id="localStorage" class="co.paralleluniverse.galaxy.core.OffHeapLocalStorage"> <constructor-arg name="pageSize" value="1024"/> <constructor-arg name="maxItemSize" value="1024"/> <constructor-arg name="monitoringType" value="METRICS"/> <property name="maxPagesForConcurrency" value="4"/> </bean> <bean id="backup" class="co.paralleluniverse.galaxy.core.BackupImpl"> <constructor-arg name="monitoringType" value="METRICS"/> <!-- METRICS/JMX --> <property name="maxDelay" value="200"/> </bean> <!-- REMOTE MAIN STORE (NO SERVER PROCESS) --> <!-- <bean id="serverPipe" class="co.paralleluniverse.galaxy.server.CommPipe"/> <bean id="serverComm" factory-bean="serverPipe" factory-method="getComm1"> <constructor-arg index="0" value="${grid.nodeId}"/> </bean> <bean id="memory" class="co.paralleluniverse.galaxy.core.MainMemory"> <constructor-arg name="comm"> <bean factory-bean="serverPipe" factory-method="getComm2"> <constructor-arg index="0" value="0"/> </bean> </constructor-arg> <constructor-arg name="monitoringType" value="METRICS"/> </bean> <bean id="store" class="co.paralleluniverse.galaxy.jdbc.SQLDB"> <constructor-arg name="dataSource"> <bean class="org.apache.derby.jdbc.ClientDataSource40"> <property name="serverName" value="localhost"/> <property name="portNumber" value="1527"/> <property name="databaseName" value="galaxydb"/> <property name="createDatabase" value="create"/> </bean> </constructor-arg> <property name="maxItemSize" value="1024"/> <property name="useUpdateableCursors" value="false"/> </bean> --> <!-- <context:property-placeholder location="classpath:com/foo/jdbc.properties"/> --> <!-- See http://static.springsource.org/spring/docs/3.1.x/spring-framework-reference/html/beans.html 4.8.2.1 --> <!-- <context:property-override location="classpath:override.properties"/> --><!-- See http://static.springsource.org/spring/docs/3.1.x/spring-framework-reference/html/beans.html 4.8.2.2 --> </beans>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy