https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18948
--- Comment #15 from HKS3 Tadeusz SoĊnierz <[email protected]> --- Created attachment 196156 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196156&action=edit Bug 18948: (WIP) Use ElasticSearch aliases for zero-downtime reindexing This switches SearchEngine::ElasticSearch to operate on aliases rather than the indexes directly most of the time. We only touch indexes themselves when (re)creating them. When rebuilding an index, a new one is created (with a semi-unique name) written to from that point on (by regular Koha operations), and swapped with the old one once the rebuild is complete, giving us zero-downtime rebuilds. The option to delete the index is now removed, as I can think of no reason to use it: we can have multiple indexes live at the same time and all of them get searched. Known issues: - `index_name` is still used as a name in the code, to now mean "alias name" most of the time. This should change before this ships. - The real index names are the alias name trailed by _<timestamp>. In code this is called "colour", since I initially planned to call them "red" and "blue" or something similar. The timestamp has an added bonus of telling us when each index was created, which may be useful when investigating issues, but we may want to go for something else (and call it differently). This is a work in progress, but complete enough to be discussable. -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
