最近回 Backend 領域看 Team 內的後端開發給予建議,雖然號稱在使用 MVC 框架但還是有分可維護跟不容易維護的差別。 我試著用後端的 HTTP LifeCycle 或者可以說是 HTTP Workflow 來解釋如何在
兩個脈絡看待 PHP Coding Style 整合工具,我們可以從 Formater 自動修正 以及 Linter 檢查工具 來看
家嬷目前遇到失智照護處理的問題。失智也有分很多種類型,現階段需要先釐清阿嬤屬於哪一種類型才能針對狀況做處理 今天前往醫院進行腦波圖的檢查,月底
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 }
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
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