Идеята е да се поправи magento със status "red" :(
За целта изпълнявам грубо казано това:
0. Превключваме временно към mysql search engine
1. За да проверим статуса на индекса:
curl -m1 localhost:9200/_cluster/health?pretty
2. Преглеждаме индексите:
curl --silent -X GET localhost:9200/_cat/indices?v
3. Изтриваме индексите:
curl -XDELETE localhost:9200/*
4. php magento indexer:reindex
5. php magento indexer:status
/var/www/magento-live/bin # curl --silent -X GET localhost:9200/_cat/indices?v
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
green open magento2_en_catalog_product_20201015_163059 jUDhUAAmRAKy4YVR9R9_BQ 1 0 49986 0 36.3mb 36.3mb
green open magento2_bg_catalog_category_20201015_163116 f8MeZFvKRp6hyiy3FPp6CA 1 0 116 0 341.5kb 341.5kb
green open magento2_bg_tracking_log_event_20201015 ptX7KBhmTYeC83CBzb4VPA 1 0 9 0 39.1kb 39.1kb
green open magento2_bg_thesaurus_20201015_163119 Vv3pUf7VReq3pdCMBf2gKg 1 0 0 0 230b 230b
green open magento2_bg_tracking_log_session_20201015 kYrAfzUxRtSMUoaYsr2Rmg 1 0 1 0 4.9kb 4.9kb
green open magento2_en_catalog_category_20201015_163117 aeiRjcIvTpytVF1d0VtxVA 1 0 116 0 348.3kb 348.3kb
green open magento2_bg_catalog_product_20201015_163048 o787i88OTTmBiiYKW6zZ0Q 1 0 50294 0 36.1mb 36.1mb
green open magento2_en_thesaurus_20201015_163119 NSOrCmgLQoyIbObCSWQPbw 1 0 0 0 230b 230b
Тук са няколко хиледи индекси
След като изтрием виждаме, че статус е вече, green
/var/www/magento-live/bin # curl -m1 localhost:9200/_cluster/health?pretty
{
"cluster_name" : "elasticsearch",
"status" : "green",
"timed_out" : false,
"number_of_nodes" : 1,
"number_of_data_nodes" : 1,
"active_primary_shards" : 8,
"active_shards" : 8,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 0,
"delayed_unassigned_shards" : 0,
"number_of_pending_tasks" : 0,
"number_of_in_flight_fetch" : 0,
"task_max_waiting_in_queue_millis" : 0,
"active_shards_percent_as_number" : 100.0
}
VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)
VN:F [1.9.22_1171]