The invention discloses a
metadata management method based on ES cold and hot data read-write separation, and relates to the technical field of
metadata management, comprising: marking an SSD disk as a hot node, and marking an SATA disk as a cold node; assigning
label parameters in a node starting command to enable the nodes to join according to roles; creating an index template to divide a hot index and a cold index, writing a
default route to a hot node, and reading an automatic
route of a coordination node; setting an automatic index rolling strategy, writing an active index into a hot node, automatically establishing a new index when a threshold value is reached, and preferentially allocating resources to the hot index; an ILM migration rule is configured, and the overdue index is automatically migrated to a cold node; writing real-time
metadata into a hot node, migrating overdue metadata to a cold node regularly or manually, and deleting cold node data according to a strategy; real-
time data are read from the hot nodes, historical data are read from the cold nodes, and on-demand access is achieved. The performance, reliability and
resource utilization rate of the ES cluster are remarkably improved on the premise that the cost is controllable.