auto-config.xml
1.35 KB
<?xml version="1.0" encoding="UTF-8"?>
<config>
<group>
<property name="yoho.search.consumer.env.namespace" defaultValue="search-consumer" description="namespace"/>
<property name="yoho.search.consumer.env.serverport" defaultValue="8" description="port"/>
<property name="yoho.search.consumer.env.webapphome" defaultValue="/home/dev/yoho-search-consumer/deploy" description="install path"/>
<property name="search.es.cluster.name" defaultValue="yohosearch" description="" />
<property name="search.es.servers" defaultValue="192.168.102.12:9300 192.168.102.13:9300" description="" />
<property name="search.index.number_of_replicas" defaultValue="1" description="" />
<property name="search.index.refresh_interval" defaultValue="1s" description="" />
<property name="search.index.translog.flush_threshold_ops" defaultValue="5000" description="" />
</group>
<script>
<generate template="META-INF/autoconf/databases.yml" destfile="WEB-INF/classes/databases.yml"/>
<generate template="META-INF/autoconf/logback.xml" destfile="WEB-INF/classes/logback.xml"/>
<generate template="META-INF/autoconf/config.properties" destfile="WEB-INF/classes/config.properties"/>
<generate template="META-INF/autoconf/index.xml" destfile="WEB-INF/classes/index.xml"/>
</script>
</config>