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

Let snapshot support multiple Azure storage accounts. #2840

Open
jerryshiba opened this issue Aug 21, 2024 · 1 comment
Open

Let snapshot support multiple Azure storage accounts. #2840

jerryshiba opened this issue Aug 21, 2024 · 1 comment

Comments

@jerryshiba
Copy link

jerryshiba commented Aug 21, 2024

Hi,

Our team has some Azure storage accounts now, each account is for different bill.
We want to assign different account to backup specific OpenSearch indices to Azure blob.
But currently we cannot choose client on snapshot webpage.

So, I edited some codes to support this feature.
# vi ./fess/app/WEB-INF/site/kopf/partials/snapshot/azure_repository.html
@16 add

<div class="form-group col-md-6">
  <label class="form-label">client</label>
  <input ng-model="repository_form.settings.client" class="form-control input-sm" placeholder="Defaults to default user">
</div>

# vi ./fess/app/WEB-INF/site/kopf/dist/kopf.js
@3407 add 'client' in azureSettings
if (this.type === 'azure') { var azureSettings = ['container', 'base_path', 'concurrent_streams', 'chunk_size', 'client', 'compress']; json.settings = this. (azureSettings); }
So that, we can assign a client to create a new repository
image
The new created repository will look like
image
Now, we can select this repository with a specified client to create snapshot
image
This functionality is proven by our team, it works.

Actually, I want to update these codes to kopf or cerebro, but the original author will never support these projects.
Our team will keep using OpenSearch and hope we can still add new features (or fix bugs) to this project (fess), maybe someday OpenSearch 3.0 is released, we can work together to make this project support new version of OpenSearch.

Thanks

@jerryshiba jerryshiba changed the title let snapshot support multiple Azure storage accounts. Let snapshot support multiple Azure storage accounts. Aug 21, 2024
@marevol
Copy link
Contributor

marevol commented Aug 22, 2024

Fess uses forked kopf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants