当前位置:网站首页>Snapshot management for elastic cloud enterprise
Snapshot management for elastic cloud enterprise
2022-06-24 17:02:00 【Three ignition cycles】
@toc
3 month 23 Number ,Elastic The latest 7.12 edition . In this version , The most important update is frozen tier Release . Compared with the previous version of cold tier( About cold tier The details of the , You can check the previous blog posts :Elastic Searchable snapshot A preliminary study of the function of 、Elastic Searchable snapshot A preliminary study of the function of Two (hot phase)), The biggest difference is that we can search the data directly in the object store , That is, we can keep the snapshot data in the object storage all the time Available online , By building a small-scale , A computing cluster with only basic storage , You can view the massive data saved in the snapshot ! Achieve real separation of computing and storage , And greatly reduce the cost of looking up huge historical frozen data and improve the query efficiency .( Refer to the official blog : Search directly with the new frozen layer S3)
High energy picture ahead :
A single node " mount "1PB data , Local disk usage 1.7%, Only a few computing resources and local storage resources can be used to query massive data .
To do that , There are several premises :
- Need to have Elastic Of Enterprise Level subscription
- There are already available object stores for the snapshot repository
And when we use ECE(Elastic Cloud Enterprise) When creating a cluster , It has naturally met the first demand . What we have to do is pass ECE To manage our snapshot Repository , And build an index and searchable snapshot The relationship between , We will show you how to do this in a series of articles .
In this paper , Let's take a quick look ECE Snapshot management function on .
Processing snapshots
Snapshot for your Elasticsearch The index provides backup . When there are not enough zones to provide high availability , Snapshots can be used to recover from failures , You can also recover from accidental deletion .
Before you start
For your Elasticsearch The cluster enables snapshots and uses snapshots , You must have configured the repository . After configuring the snapshot Repository , Every time 30 Take a snapshot every minutes or at an interval you specify .
Be careful : Snapshots back up only open indexes . If you close the index , The index will not be included in the snapshot , So you won't be able to restore data .
from Elastic Stack 7.6 Version start , Use Kibana To manage snapshots . stay Kibana in , You can set up other repositories to store snapshots , Rather than by Elastic Cloud Enterprise Currently managed repositories . You can view and delete snapshots , And configure snapshot lifecycle management (SLM) Policy to automatically execute when creating and deleting snapshots .
stay Elastic Cloud Enterprise in , You can view Snapshot list , You can also deploy from other sites in the same region Restore snapshot .
Configure snapshot warehouse
The snapshot repository is for the entire Elastic Cloud Enterprise Installation management , Create or manage snapshot repositories for Elasticsearch The cluster specifies the snapshot repository . After specifying the repository , By default, or the specified time interval, the default is every 30 Take a snapshot every minutes .
adopt Elastic The core repository plug-in provides support for the following repositories :
Add snapshot warehouse configuration
You can be right here Elasticsearch Before the cluster performs any snapshot or restore operations , At least one snapshot repository configuration needs to be added to your Elastic Cloud Enterprise Installing .
To add a snapshot Repository :
- Log in to Cloud UI.
- from “Platform” The menu , choice “Repositories”.
- single click "Add Repository" To add an existing snapshot Repository .
- Provide the name of the warehouse configuration .
- Select a supported warehouse type , Then specify the necessary settings : - Amazon S3 To configure : All warehouse options must be specified , Because there is no default . - region The area where the bucket is located . - bucket Name of the bucket used for the snapshot . - access key Access key for authentication . - secrect key The key used for authentication . - GCS To configure : except S3 outside , Other configurations require the use of json How to configure ```json { "type": "gcs", "settings": { "bucket": "lex-demo-bucket", "client": "my_alternate_client" } } ```
- Need to access GCP Of service account Configure an access credential - And then through deployment -> Security, Configure the access credentials ( Be careful , there client name , Must be with Security key The names inside match :`my_alternate_client`)Insert picture description here Insert picture description here
Create a cluster and install the corresponding plug-ins
It can be installed at the time of creation :
It can also be modified after installation :
After the snapshot plug-in is installed , Can be in the cluster Kibana notice ECE Snapshot repository created for you (found-snapshots):
You can back up the index to the snapshot repository , You can also register a new snapshot repository to distinguish ECE Automatic backup of
Create snapshot policy
after , stay Kibana Create snapshot policy on , Data can be backed up to ECE Created found-snapshots Warehouse
Be careful , there name, If it's named cloud-snapshot-policy, Can be in ECE Manually create snapshots on the interface of
View snapshots
We can do it in ECE View all available snapshots on the interface of :
expectation
adopt ECE Manage a unified snapshot Repository , We can do , When multiple clusters generate snapshots through the warehouse , adopt searchable snapshot The function of , We can do this by building a small-scale , A computing cluster with only basic storage , You can view the massive data stored in the snapshot warehouse of multiple clusters !
边栏推荐
- Daily algorithm & interview questions, 28 days of special training in large factories - the 15th day (string)
- Building a cross public chain platform to solve DAPP development problems
- [web] what happens after entering the URL from the address bar?
- How to access tke cluster API interface with certificate or token
- Tencent released "warehouse express" and issued "ID card" for each commodity!
- ClassNotFoundException v/s NoClassDefFoundError
- 让UPS“印象派用户”重新认识可靠性
- With the solution, the nickname of the applet suddenly becomes "wechat user", and the avatar cannot be displayed?
- Automatically refresh CDN cache in real time based on cos log
- Object store signature generation
猜你喜欢

MySQL learning -- table structure of SQL test questions

A survey of training on graphs: taxonomy, methods, and Applications

A survey on dynamic neural networks for natural language processing, University of California
![[leetcode108] convert an ordered array into a binary search tree (medium order traversal)](/img/e1/0fac59a531040d74fd7531e2840eb5.jpg)
[leetcode108] convert an ordered array into a binary search tree (medium order traversal)

A survey on model compression for natural language processing (NLP model compression overview)

Daily algorithm & interview questions, 28 days of special training in large factories - the 15th day (string)
随机推荐
Implement typescript runtime type checking
Pagoda activities, team members can enjoy a lightweight server 1 core 2g5m 28 yuan for two years
中金证券靠谱吗?是否合法?开股票账户安全吗?
Saying "Dharma" Today: the little "secret" of paramter and localparam
Teach you to write a classic dodge game
proxy pattern
A set of very good H3C and Tianrongxin Internet cutover scheme templates, with word document download
What is a reptile
In those years, I insisted on learning the motivation of programming
Markdown syntax -- Formula
区块哈希游戏竞猜系统开发(成熟代码)
What is cloud development? Why cloud development? Talk about our story
Virtual machine virtual disk recovery case tutorial
[tke] enable CPU static management strategy
Contributed code to famous projects for the first time, a little nervous
Tencent monthly security report helps rural revitalization, releases cloud security reports, and jointly builds a joint network security laboratory
A solution for building live video based on open source real-time audio and video webrtc architecture
Is CICC securities reliable? Is it legal? Is it safe to open a stock account?
How important is it to document the project? I was chosen by the top 100 up leaders and stood up again
Analysis and introduction of NFT meta universe source code construction