审计记录

target/classes/default-ignite.xml 5.7 KB
胡敏 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136
<?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:util="http://www.springframework.org/schema/util"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
                           http://www.springframework.org/schema/beans/spring-beans.xsd
                           http://www.springframework.org/schema/util
                           http://www.springframework.org/schema/util/spring-util.xsd">

<bean class="org.apache.ignite.configuration.IgniteConfiguration">

	<property name="localHost" value="192.168.204.32"/>
    <!-- Explicitly configure TCP discovery SPI to provide list of initial nodes. -->
    <property name="discoverySpi">
      <bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
        <property name="ipFinder">
          <!--
              Ignite provides several options for automatic discovery that can be used
              instead os static IP based discovery. For information on all options refer
              to our documentation: http://apacheignite.readme.io/docs/cluster-config
          -->
          <!-- Multicast -->
          <bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.multicast.TcpDiscoveryMulticastIpFinder"/>

          <!-- Uncomment static IP finder to enable static-based discovery of initial nodes. -->
<!--
          <bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">
            <property name="addresses">
              <list>
                &lt;!&ndash; In distributed environment, replace with actual host IP address. &ndash;&gt;
                <value>127.0.0.1:47500..47509</value>
              </list>
            </property>
          </bean>
-->

          <!-- Uncomment S3 IP finder to enable Amazon S3 based discovery. -->
          <!-- This IP Finder requires ignite-aws module in classpath. -->
<!--
          <bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.s3.TcpDiscoveryS3IpFinder">
            <property name="awsCredentials">
              <bean class="com.amazonaws.auth.BasicAWSCredentials">
                <constructor-arg value="YOUR_ACCESS_KEY_ID" />
                <constructor-arg value="YOUR_SECRET_ACCESS_KEY" />
              </bean>
            </property>
            <property name="bucketName" value="YOUR_BUCKET_NAME_IP_FINDER"/>
          </bean>
-->

          <!-- Uncomment Google Storage IP finder to enable GCE based discovery. -->
          <!-- This IP Finder requires ignite-gce module in classpath. -->
<!--
          <bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.gce.TcpDiscoveryGoogleStorageIpFinder">
            <property name="projectName" ref="YOUR_GOOGLE_PLATFORM_PROJECT_NAME"/>
            <property name="bucketName" value="YOUR_BUCKET_NAME"/>
            <property name="serviceAccountId" value="YOUR_SERVICE_ACCOUNT_ID"/>
            <property name="serviceAccountP12FilePath" value="PATH_TO_YOUR_PKCS12_KEY"/>
          </bean>
-->

          <!-- Uncomment JClouds IP finder to enable generic cloud based discovery. -->
          <!-- This IP Finder requires ignite-cloud module in classpath. -->
<!--
          <bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.cloud.TcpDiscoveryCloudIpFinder">
            <property name="provider" value="google-compute-engine"/>
            <property name="identity" value="YOUR_SERVICE_ACCOUNT_EMAIL"/>
            <property name="credentialPath" value="PATH_YOUR_PEM_FILE"/>
            <property name="zones">
              <list>
                <value>us-central1-a</value>
                <value>asia-east1-a</value>
              </list>
            </property>
          </bean>
-->

          <!-- Uncomment JDBC IP finder and configure data source to enable JDBC based discovery. -->
          <!-- This IP Finder requires spring-jdbc and spring-tx modules in classpath. -->
<!--
          <bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.jdbc.TcpDiscoveryJdbcIpFinder">
            <property name="dataSource" ref="ds"/>
          </bean>

          <bean id="ds" class="some.Datasource">
            ...
          </bean>
-->
        </property>
      </bean>
    </property>

    <!-- Allows encryption with SSL and TLS. For more details refer to https://apacheignite.readme.io/docs/ssltls -->
<!--
    <property name="sslContextFactory">
      <bean class="org.apache.ignite.ssl.SslContextFactory">
        <property name="keyStoreFilePath" value="keystore/server.jks"/>
        <property name="keyStorePassword" value="123456"/>
        <property name="trustStoreFilePath" value="keystore/trust.jks"/>
        <property name="trustStorePassword" value="123456"/>
        <property name="setProtocol" value="SSL"/>
      </bean>
    </property>
-->

    <!-- Template cache configuration. -->
    <property name="cacheConfiguration">
      <bean class="org.apache.ignite.configuration.CacheConfiguration">
        <property name="name" value="*"/>
        <property name="cacheMode" value="PARTITIONED"/>
        <property name="backups" value="1"/>
        <property name="readFromBackup" value="false"/>
      </bean>
    </property>

    <property name="includeEventTypes">
      <list>
        <util:constant static-field="org.apache.ignite.events.EventType.EVT_CACHE_OBJECT_REMOVED"/>
      </list>
    </property>

    <!-- Logging configuration. -->
    <property name="gridLogger">
      <bean class="org.apache.ignite.logger.java.JavaLogger">
        <constructor-arg type="java.util.logging.Logger">
          <bean class="java.util.logging.Logger">
            <constructor-arg type="java.lang.String" value="global"/>
          </bean>
        </constructor-arg>
      </bean>
    </property>

    <property name="metricsLogFrequency" value="0"/>
  </bean>
</beans>