Skip to content

Instantly share code, notes, and snippets.

@joeywhelan
Created March 14, 2025 19:28
Show Gist options
  • Select an option

  • Save joeywhelan/32e506a20fe003780bf6ef9fca696e25 to your computer and use it in GitHub Desktop.

Select an option

Save joeywhelan/32e506a20fe003780bf6ef9fca696e25 to your computer and use it in GitHub Desktop.
echo -e "\n*** Create a Follower Index, east_ccr on East Cluster ***"
json=$(jq -nc \
'{
remote_cluster: "west_remote",
leader_index: "west_ccr",
max_read_request_operation_count: 5120,
max_outstanding_read_requests: 12,
max_read_request_size: "32mb",
max_write_request_operation_count: 5120,
max_write_request_size: "9223372036854775807b",
max_outstanding_write_requests: 9,
max_write_buffer_count: 2147483647,
max_write_buffer_size: "512mb",
max_retry_delay: "500ms",
read_poll_timeout: "1m"
}')
curl -s -k -u "elastic:elastic" -X PUT "https://$EAST_ELASTIC_IP:9200/east_ccr/_ccr/follow" \
-H "Content-Type: application/json" \
-d "$json" > /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment