Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Not able to change translog related replication settings. #1456

Closed
dewsingh opened this issue Oct 10, 2024 · 7 comments
Closed

[BUG] Not able to change translog related replication settings. #1456

dewsingh opened this issue Oct 10, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@dewsingh
Copy link

dewsingh commented Oct 10, 2024

What is the bug?
Not able to change translog related replication settings plugins.replication.translog.retention_lease.pruning.enabled and plugins.replication.translog.retention_size

How can one reproduce the bug?
Steps to reproduce the behavior:

  1. Install OpenSearch leader and follower clusters with cross cluster replication plugin enabled and configured.
  2. Verify the replication is working and the follower is able to replicate from leader cluster.
  3. Try changing the plugins.replication.translog.retention_size replication setting.
  4. Below error is observed.

curl -u admin:xxx -XPUT -k "https://opensearch.xxx:9200/_cluster/settings" -H 'Content-Type: application/json' -d '
{
"persistent": {
"plugins.replication.translog.retention_size": "256mb"
}
}'
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"persistent setting [plugins.replication.translog.retention_size], not recognized"}],"type":"illegal_argument_exception","reason":"persistent setting [plugins.replication.translog.retention_size], not recognized"},"status":400}

What is the expected behavior?
Retention size of the translog should be changed.

What is your host/environment?

  • Version - 2.12.0.0
@dewsingh dewsingh added bug Something isn't working untriaged labels Oct 10, 2024
@bharath-techie
Copy link

@dewsingh can you verify that the plugin is installed properly using cat plugins - https://opensearch.org/docs/latest/api-reference/cat/cat-plugins/ . Maybe paste the output here.

[ Triage attendees - 1 2 3 4]

@dewsingh
Copy link
Author

@bharath-techie , here is the output
From the leader cluster

curl -u admin:xxxx -XGET -k "https://opensearch.xxxx:9200/_cat/plugins?v"
name component version
ifd-leader-client-6bcd6dc768-vd6nl ingest-attachment 2.12.0
ifd-leader-client-6bcd6dc768-vd6nl opensearch-cross-cluster-replication 2.12.0.0
ifd-leader-client-6bcd6dc768-vd6nl opensearch-custom-codecs 2.12.0.0
ifd-leader-client-6bcd6dc768-vd6nl opensearch-index-management 2.12.0.0
ifd-leader-client-6bcd6dc768-vd6nl opensearch-job-scheduler 2.12.0.0
ifd-leader-client-6bcd6dc768-vd6nl opensearch-reports-scheduler 2.12.0.0
ifd-leader-client-6bcd6dc768-vd6nl opensearch-security 2.12.0.0
ifd-leader-client-6bcd6dc768-vd6nl prometheus-exporter 2.12.0.0
ifd-leader-manager-0 ingest-attachment 2.12.0
ifd-leader-manager-0 opensearch-cross-cluster-replication 2.12.0.0
ifd-leader-manager-0 opensearch-custom-codecs 2.12.0.0
ifd-leader-manager-0 opensearch-index-management 2.12.0.0
ifd-leader-manager-0 opensearch-job-scheduler 2.12.0.0
ifd-leader-manager-0 opensearch-reports-scheduler 2.12.0.0
ifd-leader-manager-0 opensearch-security 2.12.0.0
ifd-leader-manager-0 prometheus-exporter 2.12.0.0
ifd-leader-data-0 ingest-attachment 2.12.0
ifd-leader-data-0 opensearch-cross-cluster-replication 2.12.0.0
ifd-leader-data-0 opensearch-custom-codecs 2.12.0.0
ifd-leader-data-0 opensearch-index-management 2.12.0.0
ifd-leader-data-0 opensearch-job-scheduler 2.12.0.0
ifd-leader-data-0 opensearch-reports-scheduler 2.12.0.0
ifd-leader-data-0 opensearch-security 2.12.0.0
ifd-leader-data-0 prometheus-exporter 2.12.0.0

From follower cluster

curl -u admin:xxxx -XGET -k "https://opensearch.xxxx:9200/_cat/plugins?v"
name component version
ifd-follower-manager-0 ingest-attachment 2.12.0
ifd-follower-manager-0 opensearch-cross-cluster-replication 2.12.0.0
ifd-follower-manager-0 opensearch-custom-codecs 2.12.0.0
ifd-follower-manager-0 opensearch-index-management 2.12.0.0
ifd-follower-manager-0 opensearch-job-scheduler 2.12.0.0
ifd-follower-manager-0 opensearch-reports-scheduler 2.12.0.0
ifd-follower-manager-0 opensearch-security 2.12.0.0
ifd-follower-manager-0 prometheus-exporter 2.12.0.0
ifd-follower-client-7c468c8cfc-cxfhz ingest-attachment 2.12.0
ifd-follower-client-7c468c8cfc-cxfhz opensearch-cross-cluster-replication 2.12.0.0
ifd-follower-client-7c468c8cfc-cxfhz opensearch-custom-codecs 2.12.0.0
ifd-follower-client-7c468c8cfc-cxfhz opensearch-index-management 2.12.0.0
ifd-follower-client-7c468c8cfc-cxfhz opensearch-job-scheduler 2.12.0.0
ifd-follower-client-7c468c8cfc-cxfhz opensearch-reports-scheduler 2.12.0.0
ifd-follower-client-7c468c8cfc-cxfhz opensearch-security 2.12.0.0
ifd-follower-client-7c468c8cfc-cxfhz prometheus-exporter 2.12.0.0
ifd-follower-data-0 ingest-attachment 2.12.0
ifd-follower-data-0 opensearch-cross-cluster-replication 2.12.0.0
ifd-follower-data-0 opensearch-custom-codecs 2.12.0.0
ifd-follower-data-0 opensearch-index-management 2.12.0.0
ifd-follower-data-0 opensearch-job-scheduler 2.12.0.0
ifd-follower-data-0 opensearch-reports-scheduler 2.12.0.0
ifd-follower-data-0 opensearch-security 2.12.0.0
ifd-follower-data-0 prometheus-exporter 2.12.0.0

@skumarp7
Copy link
Contributor

Hi @bharath-techie ,

Any updates?

I also could not change any translog related settings:

plugins.replication.translog.retention_size
plugins.replication.translog.retention_lease.pruning.enabled

But im able to set these setting at the index level :

curl -k -u <user>:<pass> -XPUT
https://opensearch:9200/log-sanjay
-d '{"settings": {"index.plugins.replication.translog.retention_lease.pruning.enabled": "true"}}' -H 'Content-Type: application/json'
{"acknowledged":true,"shards_acknowledged":true,"index":"log-sanjay"}

@bharath-techie
Copy link

@nisgoel-amazon @ankitkala can you folks help here ?

@ankitkala
Copy link
Member

Hi, This is expected. These settings are available at index level(and not cluster level)

@skumarp7
Copy link
Contributor

skumarp7 commented Nov 4, 2024

Hi @ankitkala ,

These settings are still documented in the latest documentation page of Cross-Cluster Replication.

Ref: https://opensearch.org/docs/latest/tuning-your-cluster/replication-plugin/settings/

Can i raise a PR to remove this from the documentation?

@ankitkala
Copy link
Member

Thanks @skumarp7, please go ahead with the update. We can either split the settings into cluster/index. Or add a column specifying the type of setting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants