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

Add readonly option for repositories #13144

Merged
merged 1 commit into from
Aug 28, 2015

Conversation

imotov
Copy link
Contributor

@imotov imotov commented Aug 27, 2015

Closes #7831
Closes #11753

@imotov imotov added >enhancement review :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs v2.1.0 labels Aug 27, 2015
@@ -121,6 +121,7 @@ The following settings are supported:
using size value notation, i.e. 1g, 10m, 5k. Defaults to `null` (unlimited chunk size).
`max_restore_bytes_per_sec`:: Throttles per node restore rate. Defaults to `40mb` per second.
`max_snapshot_bytes_per_sec`:: Throttles per node snapshot rate. Defaults to `40mb` per second.
`readonly`:: Makes repository read-only. Defaults to `false`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only concern I have is about the documentation but it's not exactly related to this change.
For example, the new option readonly only appears within Shared FS repository although it will be a "common" option to many repositories.

Should we rewrite this part of the doc?

@dadoonet
Copy link
Member

It looks good to me.

Side question: wondering in the future if we can imagine a way to snapshot (write) over HTTP so have writeable URL repositories?

@imotov
Copy link
Contributor Author

imotov commented Aug 27, 2015

@dadoonet URL repository is ignoring this flag. So, it still cannot write anything even if you set readonly to true for it. So, it's not a common option in a sense. So, maybe, I should add it to other repos that support it (s3, azure). What do you think?

@dadoonet
Copy link
Member

So, maybe, I should add it to other repos that support it (s3, azure).

++

@imotov imotov merged commit 2b87d7d into elastic:master Aug 28, 2015
@imotov imotov deleted the issue-11753-readonly-repo branch May 1, 2020 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs >enhancement v2.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants