The invention provides a data storage method and device. The method comprises the following steps of configuring a plurality of pieces of heat monitoring configuration information for the first service, and monitoring the heat of the first service according to the configuration in each piece of heat monitoring configuration information, obtaining a heat value corresponding to each piece of heat monitoring configuration information, selecting a position for storing data corresponding to the first service according to the plurality of heat values, for example, a solid-state hard disk or a mechanical hard disk, data corresponding to the first service can be migrated after a plurality of heat values are comprehensively considered, data corresponding to the first service can be migrated independently according to a heat value. By the adoption of the scheme, one service is provided with the multiple pieces of heat monitoring configuration information, hot spot data of the service can be migrated to the solid state disk more accurately and timely, hierarchical storage efficiency is greatly improved, and the problem that in the related art, the hierarchical storage effect of the hot spotdata is not ideal due to the fact that a heat value statistical mode is single is solved.