US 11,947,985 B2
Data processing method and apparatus, and server for ensuring consistency of data processing processes of a plurality of containers
Haocheng Liu, Hangzhou (CN); and Shiping Deng, Hangzhou (CN)
Assigned to HUAWEI TECHNOLOGIES CO., LTD., Shenzhen (CN)
Filed by HUAWEI TECHNOLOGIES CO., LTD., Shenzhen (CN)
Filed on Jun. 3, 2021, as Appl. No. 17/338,137.
Application 17/338,137 is a continuation of application No. PCT/CN2019/109049, filed on Sep. 29, 2019.
Claims priority of application No. 201811496958.9 (CN), filed on Dec. 7, 2018.
Prior Publication US 2021/0294623 A1, Sep. 23, 2021
Int. Cl. G06F 9/455 (2018.01); G06F 9/50 (2006.01); G06F 9/54 (2006.01); G06F 12/02 (2006.01)
CPC G06F 9/45504 (2013.01) [G06F 9/5022 (2013.01); G06F 9/547 (2013.01); G06F 12/0223 (2013.01); G06F 2212/1008 (2013.01)] 18 Claims
OG exemplary drawing
 
1. A data processing method, wherein the method comprises:
receiving, by a first service manager, a request message of a first process of an application service, wherein the application service is run in a first container and the first container is implemented by a server, the first service manager is implemented in the first container, the request message comprises control information, content information, and a process identifier (PID) of the first service manager, the PID uniquely identifies the first service manager, the control information includes identifiers of the first process and a second process, the second process is an application process that processes the request message, and the content information indicates content and data of the service request;
sending, by the first service manager, the request message to an operating system driver;
determining, by the operating system driver based on the PID of the first service manager in the request message, a first inter-process communication (IPC) namespace associated with the first service manager, wherein the operating system driver is implemented by the server;
determining, by the operating system driver based on a pointer of a structure of the first IPC namespace, a first operating system namespace associated with the first container, wherein the first operating system namespace records first private memory and a first private service linked list of the first container; and
storing, by the operating system driver, the control information in the first private service linked list, and storing the content information in the first private memory,
wherein the first private memory is used only to store content information in a request message sent by a process of the application service in the first container, and the first private service linked list is used only to record control information in the request message sent by the process of the application service in the first container.