家嬷目前遇到失智照護處理的問題。失智也有分很多種類型,現階段需要先釐清阿嬤屬於哪一種類型才能針對狀況做處理 今天前往醫院進行腦波圖的檢查,月底

ElasticSearch 維運 - Change Alias Pointer

Change Alias Pointer The alias is your writer enterance, sometimes if you need to change the alias pointer to different concrete indices. Run Step 1. Create the new target concrete indices PUT /test_new_target_indices Run Step2. Change pointer Update old indices is_write_index to false, the new one to true POST /_aliases { "actions" : [ { "add" : { "index" : "qlog-f-vbs-202104-0430-000006", "alias" : "qlog-f-vbs-202104", "is_write_index" : false } }, {

ElasticSearch 維運 - Forced Merge

Force Merge Force merge action can clean up docs.delete, make read preformace better and save more disks space for the snapshot. Please refer to ES Document https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-forcemerge.html Run Step 1. The response will be sent utils the forcemerge action is done. So you will usually encounter timeout on the production indices. After enter the request, you can skip to wait manually. POST qlog-b-202105-0521-000004/_forcemerge?max_num_segments=1 // Ctrl C? or waiting util timeout

ElasticSearch 維運 - Reindex

Reindex Refer to https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html Reindex: If you want to merge different concrete indices. Sometimes if the indices is not balance like too many tiny indices or can not shrink number of shards to suitable number. Brief introduction Create the new dest indices Call _reindex action Check reindex running status Recover the indices setting to the new dest indices Delete the old indices Example We want to merge qlog-fff-202105-000002, qlog-fff-202104-1 Run

ElasticSearch 維運 - Shrink Shard

Shrink the number of shards Brief introduction Move all indices data into the same data node and block writing Check data moving status util finish Call _shrink api and assign the new name and settings(included # of shards) Check the new indices creation status Set the replica back, and check the new one and old one whether the doc.count is the same or not. Delete old indices. (Be careful for