Skip to content

Commit

Permalink
LRQA-56363 Create follower indices for workflow and liferay settings …
Browse files Browse the repository at this point in the history
…indices
  • Loading branch information
timpak authored and brianchandotcom committed Mar 24, 2020
1 parent e431c50 commit b576387
Showing 1 changed file with 147 additions and 0 deletions.
147 changes: 147 additions & 0 deletions build-test-elasticsearch7.xml
Original file line number Diff line number Diff line change
Expand Up @@ -901,6 +901,27 @@ xpack.monitoring.collection.enabled: true</echo>

<echo>${curl.output.follower.liferay.index}</echo>

<property name="follower.liferay.settings.index">
<![CDATA[
{
"leader_index": "liferay-0",
"remote_cluster": "leader"
}
]]>
</property>

<exec executable="curl" outputproperty="curl.output.follower.liferay.settings.index">
<arg value="-H" />
<arg value="Content-Type: application/json" />
<arg value="-X" />
<arg value="PUT" />
<arg value="localhost:9202/liferay-0/_ccr/follow?wait_for_active_shards=1" />
<arg value="-d" />
<arg value="${follower.liferay.settings.index}" />
</exec>

<echo>${curl.output.follower.liferay.settings.index}</echo>

<property name="follower.synonyms.index">
<![CDATA[
{
Expand All @@ -922,6 +943,132 @@ xpack.monitoring.collection.enabled: true</echo>

<echo>${curl.output.follower.synonyms.index}</echo>

<property name="follower.workflow.metrics.instances.index">
<![CDATA[
{
"leader_index": "workflow-metrics-instances",
"remote_cluster": "leader"
}
]]>
</property>

<exec executable="curl" outputproperty="curl.output.follower.workflow.metrics.instances.index">
<arg value="-H" />
<arg value="Content-Type: application/json" />
<arg value="-X" />
<arg value="PUT" />
<arg value="localhost:9202/workflow-metrics-instances/_ccr/follow?wait_for_active_shards=1" />
<arg value="-d" />
<arg value="${follower.workflow.metrics.instances.index}" />
</exec>

<echo>${curl.output.follower.workflow.metrics.instances.index}</echo>

<property name="follower.workflow.metrics.nodes.index">
<![CDATA[
{
"leader_index": "workflow-metrics-nodes",
"remote_cluster": "leader"
}
]]>
</property>

<exec executable="curl" outputproperty="curl.output.follower.workflow.metrics.nodes.index">
<arg value="-H" />
<arg value="Content-Type: application/json" />
<arg value="-X" />
<arg value="PUT" />
<arg value="localhost:9202/workflow-metrics-nodes/_ccr/follow?wait_for_active_shards=1" />
<arg value="-d" />
<arg value="${follower.workflow.metrics.nodes.index}" />
</exec>

<echo>${curl.output.follower.workflow.metrics.nodes.index}</echo>

<property name="follower.workflow.metrics.processes.index">
<![CDATA[
{
"leader_index": "workflow-metrics-processes",
"remote_cluster": "leader"
}
]]>
</property>

<exec executable="curl" outputproperty="curl.output.follower.workflow.metrics.processes.index">
<arg value="-H" />
<arg value="Content-Type: application/json" />
<arg value="-X" />
<arg value="PUT" />
<arg value="localhost:9202/workflow-metrics-processes/_ccr/follow?wait_for_active_shards=1" />
<arg value="-d" />
<arg value="${follower.workflow.metrics.processes.index}" />
</exec>

<echo>${curl.output.follower.workflow.metrics.processes.index}</echo>

<property name="follower.workflow.metrics.sla.instance.results.index">
<![CDATA[
{
"leader_index": "workflow-metrics-sla-instance-results",
"remote_cluster": "leader"
}
]]>
</property>

<exec executable="curl" outputproperty="curl.output.follower.workflow.metrics.sla.instance.results.index">
<arg value="-H" />
<arg value="Content-Type: application/json" />
<arg value="-X" />
<arg value="PUT" />
<arg value="localhost:9202/workflow-metrics-sla-instance-results/_ccr/follow?wait_for_active_shards=1" />
<arg value="-d" />
<arg value="${follower.workflow.metrics.sla.instance.results.index}" />
</exec>

<echo>${curl.output.follower.workflow.metrics.sla.instance.results.index}</echo>

<property name="follower.workflow.metrics.sla.task.results.index">
<![CDATA[
{
"leader_index": "workflow-metrics-sla-task-results",
"remote_cluster": "leader"
}
]]>
</property>

<exec executable="curl" outputproperty="curl.output.follower.workflow.metrics.sla.task.results.index">
<arg value="-H" />
<arg value="Content-Type: application/json" />
<arg value="-X" />
<arg value="PUT" />
<arg value="localhost:9202/workflow-metrics-sla-task-results/_ccr/follow?wait_for_active_shards=1" />
<arg value="-d" />
<arg value="${follower.workflow.metrics.sla.task.results.index}" />
</exec>

<echo>${curl.output.follower.workflow.metrics.sla.task.results.index}</echo>

<property name="follower.workflow.metrics.tokens.index">
<![CDATA[
{
"leader_index": "workflow-metrics-tokens",
"remote_cluster": "leader"
}
]]>
</property>

<exec executable="curl" outputproperty="curl.output.follower.workflow.metrics.tokens.index">
<arg value="-H" />
<arg value="Content-Type: application/json" />
<arg value="-X" />
<arg value="PUT" />
<arg value="localhost:9202/workflow-metrics-tokens/_ccr/follow?wait_for_active_shards=1" />
<arg value="-d" />
<arg value="${follower.workflow.metrics.tokens.index}" />
</exec>

<echo>${curl.output.follower.workflow.metrics.tokens.index}</echo>

<exec executable="curl" outputproperty="curl.output.follower.indices">
<arg value="-X" />
<arg value="GET" />
Expand Down

0 comments on commit b576387

Please sign in to comment.