(EN) An encoding method in a distributed system environment, a decoding method in a distributed system environment, and corresponding apparatuses, relating to the technical field of encoding fault tolerance. The encoding method comprises: performing first encoding on original data to obtain global verification data, and performing second encoding on the original data to obtain local verification data (S101); storing the original data in one or more data partitions of a distributed system (S102); and storing, in the data partition where the original data is stored, the global verification data and the local verification data corresponding to the original data (S103). The recovery cost of a distributed system environment is optimized, without affecting the system fault tolerance capability and storage cost.
(FR) L'invention concerne un procédé d'encodage dans un environnement de système réparti, un procédé de décodage dans un environnement de système réparti et des appareils correspondants, se rapportant au domaine technique de l'encodage de tolérance aux pannes. Le procédé d'encodage comprend les étapes consistant à : réaliser un premier encodage sur des données d'origine pour obtenir des données de vérification globale, et réaliser un second encodage sur les données d'origine pour obtenir des données de vérification locale (S101) ; stocker les données d'origine dans une ou plusieurs partitions de données d'un système réparti (S102) ; et stocker, dans la partition de données où les données d'origine sont stockées, les données de vérification globale et les données de vérification locale correspondant aux données d'origine (S103). Le coût de récupération d'un environnement de système réparti est optimisé, sans affecter la capacité de tolérance aux pannes du système et le coût de stockage.
(ZH) 一种分布式系统环境下的编码方法、解码方法和对应装置,涉及编码容错技术领域,所述方法包括:对原始数据进行第一编码,获得全局校验数据,对原始数据进行第二编码,获得本地校验数据(S101);将所述原始数据保存在分布式系统的一个或者多个数据分区中(S102);在存入原始数据的数据分区中存入所述原始数据对应的全局校验数据和本地校验数据(S103)。针对分布式系统环境,在不影响系统容错能力以及存储代价的前提下优化其恢复代价。