Information processing method and device for heterogeneous cluster, equipment, medium and product
Patent Information
- Application Number
- CN202311290074.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-28
- Publication Date
- 2026-09-04
- Estimated Expiration
- 2043-09-28
AI Technical Summary
[0005]本申请提供一种异构集群的信息处理方法、装置、设备、介质及产品,用以解决异构集群中不同节点需要访问同一文件时需要进行文件转换和人工移动,导致异构集群的信息处理效率较低的技术问题
[0030] In a seventh aspect, this application provides a computer program product, including a computer program that, when executed by a processor, implements the information processing method for heterogeneous clusters as described in either the first or second aspect.
Smart Images

Figure CN117370293B_ABST
Abstract
Description
Technical Field
[0001] This application relates to communication technology, and more particularly to a method, apparatus, device, medium and product for information processing of heterogeneous clusters. Background Technology
[0002] A cluster is a communication system composed of multiple nodes. The nodes in a heterogeneous cluster use different instruction set computer architectures. For example, a heterogeneous cluster may include nodes supporting the x86 architecture and nodes supporting the ARM (Advanced RISC Machines) architecture. ARM uses the Reduced Instruction Set Computer (RSIC) architecture, while x86 uses the Complex Instruction Set Computer (CISC) architecture.
[0003] Currently, heterogeneous clusters are mainly used in the development and testing of terminal devices. Taking autonomous vehicles as an example, the development of a certain function of the vehicle is completed on x86 nodes, while the editing and execution of the code generally need to be done on ARM nodes. Engineers need to perform code conversion, manually move program files, compile files, and other processes on machines with different configurations through instruction sets.
[0004] Therefore, in the above heterogeneous clusters, when different nodes need to access the same file, file conversion and manual movement are required, which takes a long time and results in low information processing efficiency of the heterogeneous clusters. Summary of the Invention
[0005] This application provides a method, apparatus, device, medium, and product for information processing in heterogeneous clusters, which solves the technical problem that when different nodes in a heterogeneous cluster need to access the same file, file conversion and manual movement are required, resulting in low information processing efficiency in heterogeneous clusters.
[0006] In a first aspect, this application provides an information processing method for heterogeneous clusters, applied to the master node of a heterogeneous cluster, the method comprising:
[0007] In response to a file sharing request initiated by a management user, a public storage area is allocated, and a shared folder corresponding to the public storage area is created;
[0008] The root folders corresponding to multiple child nodes in the heterogeneous cluster are replaced with the shared folder.
[0009] In response to a registration request initiated by a regular user, a target folder for the regular user is created in the shared folder;
[0010] In response to a file access request initiated by a regular user through a target sub-node, the target file corresponding to the file access request in the target folder is sent to the target sub-node based on the regular user's target folder. The target sub-node is a sub-node that supports any architecture.
[0011] Secondly, this application provides an information processing method for heterogeneous clusters, applied to a target child node in the heterogeneous cluster, wherein the target child node is a node supporting any architecture, and the method includes:
[0012] Determine the shared folder in the master node of the heterogeneous cluster, and replace the local root folder with the shared folder, wherein the shared folder is the folder corresponding to the public storage area in the master node;
[0013] Identify the target folder in the shared folder that belongs to a regular user. The target folder is the folder created for the regular user in the shared folder based on the regular user's registration request.
[0014] Detect file access requests initiated by the ordinary user for the target folder;
[0015] The file access request is sent to the master node, and the target file corresponding to the file access request sent by the master node is received.
[0016] Thirdly, this application provides an information processing device for a heterogeneous cluster, located at the master node, comprising:
[0017] The first response unit is used to respond to a file sharing request initiated by a management user, allocate a public storage area, and create a shared folder corresponding to the public storage area;
[0018] The file replacement unit is used to control the replacement of the root folders corresponding to multiple child nodes in the heterogeneous cluster with the shared folder;
[0019] The second response unit is used to respond to a registration request initiated by a regular user and create the regular user's target folder in the shared folder;
[0020] The third response unit is used to respond to the file access request initiated by the ordinary user through the target sub-node, and to send the target file corresponding to the file access request in the target folder to the target sub-node based on the ordinary user's target folder.
[0021] Fourthly, this application provides an information processing device in a heterogeneous cluster, located at a target sub-node, wherein the target sub-node is a node supporting any architecture, comprising:
[0022] A shared determination unit is used to determine the shared folder in the master node of the heterogeneous cluster and replace the local root folder with the shared folder, wherein the shared folder is the folder corresponding to the public storage area in the master node;
[0023] The file determination unit is used to determine the target folder in the shared folder that belongs to a regular user. The target folder refers to the folder created for the regular user in the shared folder based on the regular user's registration request.
[0024] A request detection unit is used to detect file access requests initiated by the ordinary user for the target folder.
[0025] The file interaction unit is used to send the file access request to the master node and receive the target file corresponding to the file access request sent by the master node.
[0026] Fifthly, this application provides an electronic device, including: a processor, and a memory communicatively connected to the processor;
[0027] The memory stores computer-executed instructions;
[0028] The processor executes computer execution instructions stored in the memory to implement the information processing method for heterogeneous clusters as described in either the first or second aspect.
[0029] In a sixth aspect, this application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the information processing method for heterogeneous clusters as described in either the first or second aspect.
[0030] In a seventh aspect, this application provides a computer program product, including a computer program that, when executed by a processor, implements the information processing method for heterogeneous clusters as described in either the first or second aspect.
[0031] In the solution provided in this application, the master node can respond to file sharing requests initiated by management users by allocating a public storage area, which can correspond to a shared folder. By controlling the replacement of the root folders of multiple child nodes in the heterogeneous cluster with the shared folder, the file storage areas of multiple child nodes can be transferred to the public storage area of the master node. After a regular user initiates a registration request, a target folder for the regular user can be created in the shared folder, granting the regular user access rights to the target folder while other users do not. Furthermore, in response to a file access request initiated by a regular user through a target child node, the target file corresponding to the file access request in the target folder can be sent to the target child node, enabling the regular user to access the target file through the target child node. The target child node can be a child node supporting any architecture, allowing child nodes of different architectures to access the shared folder, achieving cross-node and cross-architecture access to folders. This solves the technical problem of not being able to directly perform file access between different system architectures, expands the scope of file access, and improves the information processing efficiency in heterogeneous clusters. Simultaneously, because user folders are exclusive, file security can be ensured while improving information processing efficiency in heterogeneous clusters. Attached Figure Description
[0032] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0033] Figure 1 A system architecture diagram of a heterogeneous cluster provided in this application embodiment;
[0034] Figure 2 A flowchart of one embodiment of an information processing method for heterogeneous clusters provided in this application;
[0035] Figure 3 A flowchart of yet another embodiment of an information processing method for heterogeneous clusters provided in this application;
[0036] Figure 4 A signaling diagram for an information processing method for heterogeneous clusters provided in an embodiment of this application;
[0037] Figure 5 Another signaling diagram for an information processing method for heterogeneous clusters provided in this application embodiment;
[0038] Figure 6 A schematic diagram of a heterogeneous cluster information processing device provided in an embodiment of this application;
[0039] Figure 7 Another structural schematic diagram of an information processing device for a heterogeneous cluster provided in this application embodiment;
[0040] Figure 8 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application.
[0041] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concepts of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0042] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0043] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and corresponding operation portals are provided for users to choose to authorize or refuse.
[0044] The technical solution of this application can be applied to the development and testing scenarios of heterogeneous clusters. By opening up a public storage area and creating a target folder for ordinary users based on the shared folder corresponding to the public storage area, ordinary users can access the files in the target folder through child nodes that support any architecture. This enables cross-node and cross-architecture access to folders, solves the technical problem that file access cannot be directly performed between different system architectures, expands the scope of file access, and improves the information processing efficiency in heterogeneous clusters.
[0045] In related technologies, heterogeneous clusters can include a master node and multiple child nodes, each supporting different architectures. These architectures can be, for example, x86 architecture and ARM (Advanced RISC Machines) architecture. In development and testing scenarios, research and development work is typically completed on devices supporting the x86 architecture, such as personal computers and laptops, while device testing is generally completed on devices supporting the ARM architecture. When migrating from development to testing scenarios, various files need to be transferred from one device to another. This file transfer and copying leads to lower information processing efficiency in heterogeneous clusters, especially for memory-intensive files, further reducing processing time and overall efficiency.
[0046] To address the aforementioned issues, this application proposes a shared storage area within a heterogeneous cluster to store files, allowing different child nodes to access these files. However, this shared storage area may lead to file leaks, reducing security. Therefore, this application also considers creating a target folder for the user within the shared folder during user registration, binding the user and the target folder to implement user-based file access constraints. This addresses file sharing access issues across different architectures while ensuring file security.
[0047] In the technical solution of this application, the master node can respond to file sharing requests initiated by management users by allocating a public storage area, which can correspond to a shared folder. By controlling the replacement of the root folders of multiple child nodes in the heterogeneous cluster with the shared folder, the file storage areas of multiple child nodes can be transferred to the public storage area of the master node. After a regular user initiates a registration request, a target folder for the regular user can be created in the shared folder, granting the regular user access rights to the target folder while other users do not. Furthermore, in response to a file access request initiated by a regular user through a target child node, the target file corresponding to the file access request in the target folder can be sent to the target child node, enabling the regular user to access the target file through the target child node. The target child node can be a child node supporting any architecture, allowing child nodes of different architectures to access the shared folder, achieving cross-node and cross-architecture access to folders. This solves the technical problem that file access cannot be directly performed between different system architectures, expands the scope of file access, and improves the information processing efficiency in heterogeneous clusters. Simultaneously, because user folders are exclusive, file security can be ensured while improving information processing efficiency in heterogeneous clusters.
[0048] The technical solution of this application will now be described in detail with reference to the accompanying drawings.
[0049] like Figure 1 The diagram shown illustrates a system architecture of a heterogeneous cluster according to an embodiment of this application. The heterogeneous cluster may include a master node 11 and multiple child nodes 12. The multiple child nodes 12 may support multiple architectures. For example, nodes 121 and 123 may support the x86 architecture, while nodes 122 and 124 may support the ARM architecture.
[0050] For the master node 11, it can manage multiple child nodes 12.
[0051] Specifically, master node 11 can respond to file sharing requests initiated by management users, allocate a public storage area, and create a shared folder corresponding to the public storage area. It can also control the replacement of the root folders corresponding to multiple child nodes in the heterogeneous cluster with the shared folder. In response to registration requests initiated by ordinary users, it can create the ordinary user's target folder within the shared folder.
[0052] After establishing the target folder for ordinary users, the target child node 123 is selected from among the multiple child nodes 12 that supports any architecture. The target child node 123 can identify the shared folder in the master node of the heterogeneous cluster and replace the local root folder with the shared folder. It also identifies the target folder belonging to the ordinary user within the shared folder; the target folder refers to the folder created for the ordinary user within the shared folder based on the ordinary user's registration request. It detects file access requests initiated by ordinary users for the target folder and sends the file access requests to the master node 11.
[0053] The master node 11 can receive file access requests sent by the target child node 123, and in response to file access requests initiated by ordinary users through the target child node 123, it sends the target file corresponding to the file access request in the target folder to the target child node 123 based on the ordinary user's target folder. The target child node 123 can receive the target file corresponding to the file access request sent by the master node.
[0054] For the aforementioned heterogeneous clusters, storage space can be shared by setting up a public storage area. Target folders can be created for ordinary users, allowing them to access files in their target folders through child nodes that support any architecture. This enables multiple child nodes to access files from the master node, achieving cross-node and cross-architecture access to folders. This solves the technical problem of not being able to directly perform file access between different system architectures, expands the scope of file access, and improves information processing efficiency in heterogeneous clusters.
[0055] like Figure 2The diagram shown is a flowchart of one embodiment of an information processing method for heterogeneous clusters provided in this application. This information processing method for heterogeneous clusters can be applied to the master node of a heterogeneous cluster. The method can be configured as an information processing device for heterogeneous clusters, which can be configured in the master node. The method may include the following steps:
[0056] 201. In response to a file sharing request initiated by an administrator, allocate a public storage area and create a shared folder corresponding to the public storage area.
[0057] Optionally, a heterogeneous cluster may include a master node and multiple child nodes. Multiple child nodes can be configured with multiple architectures; for example, the first child node may be configured as an x86 architecture, and the second child node may be configured as an ARM architecture.
[0058] Prior to step 201, the process may further include: detecting a storage space allocation instruction input by the management user. In response to an execution operation triggered by the allocation instruction, it is determined that the management user initiated a file sharing request.
[0059] Before step 201, it may also include: displaying a space management page, which may include: a parameter data area, where the parameter input area is used to input parameters such as the storage space allocation path and space quota, and the management user inputs data for the corresponding parameters in the parameter input area, and can detect the data input in the parameter input area and generate a file sharing request.
[0060] A file sharing request may include a specified path and space quota for allocated space. In step 201, allocating a public storage area may include: resolving the path and space quota from the file sharing request. The public storage area can then be allocated from the publicly disclosed path according to the space quota.
[0061] Optionally, in step 201, creating a shared folder corresponding to the public storage area may include: creating a shared folder according to the storage space corresponding to the public storage area, so that the storage space of the shared folder is the storage space corresponding to the public storage area.
[0062] The technical solution of this application can be implemented in a Linux system, that is, steps 201-204 are executed in a Linux system.
[0063] 202. Control the replacement of the root folders corresponding to multiple child nodes in a heterogeneous cluster with shared folders.
[0064] Optionally, step 202 may include: generating a file replacement instruction based on the file path of the shared folder, and sending the file replacement instruction to multiple child nodes respectively, so that the multiple child nodes execute the file replacement instruction respectively, replacing the local home file with the shared file. That is, any child node can receive the file replacement instruction sent by the master node and execute the file replacement instruction to replace the local root folder with the file path of the shared folder.
[0065] The root folder of each child node can refer to the folder corresponding to the home directory in the Linux system. The home directory is the user's home directory, which is usually used to store the user's files. When a user logs into the system, the path they are in is / home.
[0066] Replacing the root folder of each child node with a shared folder allows each user's files to be stored in the shared folder when multiple users access the child node, thus achieving a transfer from local storage to shared storage.
[0067] In this embodiment, steps 201-202 are the configuration process of the master node, through which the sharing of storage space is realized.
[0068] 203. In response to a registration request initiated by a regular user, create the target folder for the regular user in the shared folder.
[0069] The master node can provide user management services. Regular users can be any user.
[0070] Optionally, before step 203, the process may further include: displaying a registration page, which may include an account information input area and may respond to account information entered by a regular user on the registration page, and generating a registration request based on the account information.
[0071] Step 203 may include: responding to a registration request initiated by a regular user and determining account information for the regular user. Determining account information for a regular user may include: detecting the account information entered by the user on the registration page.
[0072] In step 203, the target folder for the ordinary user is created in the shared folder. This includes: creating a new folder in the shared folder and associating this new folder with the ordinary user's account information to obtain the ordinary user's target folder. The ordinary user's target folder can be used by that user and can be associated with the target user's account information.
[0073] Furthermore, after replacing the root folder of the child node with a shared folder, a target folder for ordinary users can be created in the shared folder, and the target folder can be used to store the user's files.
[0074] In this embodiment, there can be multiple ordinary users. The master node can receive registration requests initiated by each ordinary user and then assign a target folder to each ordinary user. The parent folder of each ordinary user's target folder can be a shared folder. For example, the folder path of ordinary user A's target folder can be: shared folder / target folder A, and the folder path of ordinary user B's target folder can be: shared folder / target folder B. That is, multiple target folders can be included under the shared folder, and different target folders are associated with different account information. The next level path of each target folder can be used to create new folders or store files.
[0075] 204. In response to a file access request initiated by a regular user through a target child node, based on the regular user's target folder, send the target file corresponding to the file access request in the target folder to the target child node. The target child node can be a child node that supports any architecture.
[0076] Optionally, any one of the multiple child nodes can be designated as the target child node, and the target child node can send a file access request to the master node. Correspondingly, the master node can receive the file access request sent by the target child node.
[0077] In this embodiment, the target child node can detect file access requests initiated by ordinary users and send the file access requests to the master node. The master node can receive the file access requests sent by the target child node.
[0078] The target child node can be any of the multiple child nodes. The architecture supported by the target child node can include, for example, either x86 architecture or ARM architecture. In this embodiment, there are no excessive restrictions on the specific architecture supported by each node.
[0079] In this embodiment, sending the target file corresponding to the file access request in the target folder to the target child node based on the target folder of a regular user may include: obtaining the file path corresponding to the file access request, reading the target file corresponding to the file path from the target folder, and sending the target file to the target child node.
[0080] Optionally, the shared folder and the target folder of different ordinary users in this application may refer to folders created through the NFS file system (Network File System).
[0081] The heterogeneous cluster information processing method provided in this application allows the master node to allocate a public storage area in response to file sharing requests initiated by management users. This public storage area can correspond to a shared folder. By controlling the replacement of the root folders of multiple child nodes in the heterogeneous cluster with the shared folder, the file storage areas of multiple child nodes can be transferred to the public storage area of the master node. After a regular user initiates a registration request, a target folder for the regular user can be created in the shared folder, granting the regular user access rights to the target folder while other users do not. Furthermore, in response to a file access request initiated by a regular user through a target child node, the target file corresponding to the file access request in the target folder can be sent to the target child node, enabling the regular user to access the target file through the target child node. The target child node can be a child node supporting any architecture, allowing child nodes of different architectures to access the shared folder, achieving cross-node and cross-architecture access to folders. This solves the technical problem of not being able to directly perform file access between different system architectures, expands the scope of file access, and improves the information processing efficiency in heterogeneous clusters. Simultaneously, because user folders are exclusive, file security can be ensured while improving information processing efficiency in heterogeneous clusters.
[0082] Furthermore, based on any of the above embodiments, it also includes:
[0083] Create account information for regular users and grant them access permissions to the target folder.
[0084] In response to a file access request initiated by a regular user through a target child node, based on the regular user's target folder, output the target file in the target folder corresponding to the file access request, including:
[0085] In response to a file access request initiated by a regular user through the target child node, obtain the account information corresponding to the file access request.
[0086] Determine if the account information corresponding to the file access request has access permissions to the target folder for a regular user.
[0087] If so, then based on the target folder of a regular user, output the target file in the target folder that corresponds to the file access request.
[0088] Optionally, generating account information for a regular user may include: processing the account information entered by the regular user for account registration, and obtaining the registration result. The registration result may be successful or unsuccessful. If the registration result is successful, then access permissions for the target folder can be established for the regular user's account information.
[0089] Furthermore, establishing access permissions for a target folder for a regular user's account information may include: establishing a mapping relationship between a regular user's account information and the target folder, and designating the target folder that has a mapping relationship with the account information as the target folder that the account information has access to.
[0090] Furthermore, determining whether the account information corresponding to the file access request has access rights to the target folder of a regular user can include: performing security verification on the account information of the regular user, and after successful verification of the account information of the regular user, obtaining the target folder that has a mapping relationship with the account information of the regular user, thereby realizing the access mapping between the user's account information and the target folder.
[0091] Obtaining the account information corresponding to a file access request can include: parsing the file access request and obtaining the account information in the file access request.
[0092] The heterogeneous cluster information processing method provided in this application, after obtaining the account information of ordinary users, can establish access permissions for the target folder based on the account information of ordinary users, thereby constraining the access security of the target folder using access permissions. In response to a file access request initiated by an ordinary user through a target child node, the account information corresponding to the file access request can be obtained, and the account information can be used to verify whether the ordinary user has access permissions to the target folder, ensuring that the user accessing the target folder is a user with the necessary permissions, thus guaranteeing the security of the file access process.
[0093] Furthermore, before responding to a file access request initiated by a regular user through the target child node, the following steps are also included:
[0094] Determine the SSH (secure shell) configuration file corresponding to the account information of ordinary users, and distribute the SSH configuration file to multiple child nodes.
[0095] Configure multiple child nodes with SSH configuration files to enable each child node to have passwordless login permissions for ordinary user account information associated with target folders.
[0096] Each sub-node has passwordless login permissions to associate the target folder with the account information of ordinary users, and receives file access requests sent by the target sub-node.
[0097] In this embodiment, the SSH configuration file can refer to a file used to store the account information of ordinary users. Distributing the SSH configuration file to multiple child nodes can include: generating configuration instructions based on the SSH configuration file, distributing the configuration instructions to multiple child nodes, so that each child node receives the configuration instructions, parses them to obtain the SSH configuration file within the configuration instructions, and executes the SSH configuration file to obtain passwordless login permissions for the ordinary user's account information and the associated target folder. Distributing the SSH configuration file enables each child node to obtain access permissions to the target folder associated with the ordinary user's account information, allowing each child node to access files in the target folder without logging in, thus improving file access efficiency.
[0098] Optionally, the SSH configuration file can be a Linux remote login security protocol file. The master node distributes the SSH configuration file to multiple child nodes, allowing each child node to use the same SSH configuration file. This enables each node to configure the account information of ordinary users and the corresponding target folders, achieving synchronized configuration of target folders across multiple child nodes.
[0099] The heterogeneous cluster information processing method provided in this application can distribute the SSH configuration file corresponding to the account information of ordinary users to multiple child nodes, and control each child node to configure its own SSH configuration file, enabling each child node to have passwordless login permissions to the target folder associated with the account information of the ordinary user. The SSH configuration file establishes an access link between the child nodes and the target folder of the ordinary user, achieving seamless data transmission between each child node and the master node, improving data access efficiency while ensuring file security.
[0100] Furthermore, based on any of the above embodiments, after creating the target folder for a regular user in the shared folder, the method further includes:
[0101] The target folder of a regular user is synchronized to the shared folder of each of the multiple child nodes, so that the target folder of the regular user is created in the shared folder of each of the multiple child nodes.
[0102] In this embodiment, the shared folder and the target folder are established through a shared file system such as NFS. For each node in the heterogeneous cluster, in order to synchronize the file paths, the target folder of ordinary users can be synchronized to the shared folder of each child node, so that one or more target folders are displayed in the shared folder of the child node, which is convenient for users.
[0103] Optionally, synchronizing a regular user's target folder to the shared folders of multiple child nodes can include: synchronizing the regular user's target folder to the shared folders of each child node based on the file update frequency. The file update frequency can refer to a pre-set frequency for synchronizing files, such as once per hour.
[0104] Optionally, the method may further include: when multiple child nodes are started, synchronizing at least one target folder under the shared folder of the master node to the multiple child nodes, so that the target folders in the shared folder of each child node can be synchronized, thereby achieving consistent access to the file structure and improving file access efficiency.
[0105] The heterogeneous cluster information processing method provided in this application can synchronize a regular user's target folder to the shared folders of multiple child nodes, thereby creating the regular user's target folder in the shared folders of multiple child nodes. After the regular user creates the target folder, it can be synchronized to multiple child nodes to ensure that the folder structure of the nodes throughout the heterogeneous cluster remains consistent, improving file security and reliability.
[0106] Furthermore, based on any of the above embodiments, outputting the target file in the target folder corresponding to the file access request includes:
[0107] Retrieve the file path and account information corresponding to the file access request.
[0108] Based on the determination that the account information in the file access request grants access permissions to the target folder of a regular user, the target file corresponding to the file path in the target folder of the regular user is identified.
[0109] The target file is sent to the target folder corresponding to the target child node, so that ordinary users can perform file interaction processing on the target file in the target child node and obtain the file interaction results.
[0110] Receive the file interaction results from the target child node.
[0111] Update the target file in the target folder according to the file interaction results, and synchronize the updated target file to the target folders of other ordinary users corresponding to the child nodes.
[0112] Optionally, the file path can refer to the storage path of the file. The file path can be determined by the shared folder and the target folder; that is, the file path is determined within the target folder under the shared folder. The target folder can be a subfolder of the shared folder.
[0113] The target child node can generate a file access request based on the file path corresponding to the file selected by the user, combined with the account information of ordinary users, and send the file access request to the master node.
[0114] Optionally, after obtaining the file path and account information corresponding to the file access request, the account information can be security-verified. If the verification passes, the target folder associated with the account information can be obtained to determine the account information's access permissions to the target folder for ordinary users. This confirms that the account information in the file access request has access permissions to the target folder for ordinary users.
[0115] In this embodiment, determining the target file corresponding to the file path in the target folder of a regular user can include: querying the target file located at the file path in the target folder of a regular user based on the file path.
[0116] Furthermore, the file path can be split according to path delimiters (the forward slash " / ") to obtain path names at each level. The file is then searched level by level according to these path names to find the target file. For example, assuming the file path is: shared folder / target folder A / folder s / file p, splitting the path by the path delimiter yields four path names: shared folder, target folder A, folder s, and file p. Since the path level corresponding to each path name is known, the search begins with the highest-level shared folder and proceeds level by level until file p is found, at which point file p is identified as the target file.
[0117] Optionally, sending the target file to the target folder corresponding to the target child node can mean sending the target file to the same path as the target folder of the target child node, storing the target file locally according to the file path, so that the target child node can display the target file, detect the file interaction processing performed by the user on the target file, and obtain the file interaction result.
[0118] The heterogeneous cluster information processing method provided in this application can obtain the file path and account information corresponding to the file access request, and determine the target folder through the account information to obtain the target file corresponding to the file path in the target folder of the ordinary user, so as to send the target file to the target folder of the target child node, realize the exclusive query and transmission of files, and improve the security and efficiency of file transmission.
[0119] Furthermore, based on any of the above embodiments, before responding to a file access request initiated by a regular user through the target child node, the method further includes:
[0120] Detect login requests triggered by ordinary users and obtain their account information.
[0121] If the account information of a regular user is successfully verified, the target child node will receive a file access request. The file access request is generated by the target child node based on the file path of the target file after detecting the target file selected by the regular user.
[0122] Optionally, detecting login requests triggered by ordinary users and obtaining the account information of ordinary users may include: displaying a login page and detecting the input operations performed by the user on the login page to obtain the account information entered by the user on the login page; when detecting the confirmation operation performed by the user on the login page, the account information entered by the user on the login page can be obtained to obtain the login information of ordinary users.
[0123] Furthermore, after obtaining the login information of ordinary users, login verification can be performed on this information, such as verifying the username and password in the account information, and obtaining a verification result. The verification result includes verification success or verification failure. If the verification result is successful, it is determined that the ordinary user's account information has been successfully verified.
[0124] The account information of a regular user is a prerequisite for receiving access requests sent by the target child node.
[0125] The heterogeneous cluster information processing method provided in this application can detect login requests triggered by ordinary users to obtain their account information, verify it, and then begin receiving file access requests from target child nodes. By logging in through the master node's account, child nodes can access the target folder of an ordinary user, ensuring the effectiveness and accuracy of file access. Verifying the ordinary user's account information allows for effective management of that information, enabling each child node to access the target folder of that user on the master node. For the entire heterogeneous system, successful login allows access to files in the target folder through each child node, achieving secure and fast file access and further improving information processing efficiency.
[0126] As yet another embodiment, the method further includes:
[0127] Identify other child nodes that are different from the target child node among multiple child nodes.
[0128] The target file is used as the interaction file, and the file interaction result is sent to other child nodes so that these child nodes can update the interaction file in the target folder corresponding to the target user based on the file interaction result. The interaction file refers to the file corresponding to the file access request initiated by the target user through other child nodes targeting the target user's target folder.
[0129] The heterogeneous cluster information processing method provided in this application embodiment allows the master node to use the target file of the target child node as the interaction file and send the file interaction result of the interaction file to other child nodes, so as to synchronize the file interaction results of the interaction files of each child node, ensure the consistency of each file, and avoid access abnormalities caused by file asynchrony.
[0130] like Figure 3 The diagram shown is a flowchart of another embodiment of an information processing method for heterogeneous clusters provided in this application. This method can be applied to heterogeneous clusters.
[0131] 301. Identify the shared folder in the master node of the heterogeneous cluster, and replace the local root folder with the shared folder. The shared folder is the folder corresponding to the public storage area in the master node.
[0132] Some steps in this embodiment can be referred to the relevant descriptions in the foregoing embodiments, and will not be repeated here.
[0133] Optionally, step 301 may include: obtaining the shared folder in the master node of the heterogeneous cluster input by the management user, and replacing the local root folder with the shared folder in response to a folder replacement operation performed by the management user. The folder replacement operation may refer to the operation of replacing the local root folder with the shared folder.
[0134] Replacing the local root folder with a shared folder means replacing the path of the local root folder with the path of the shared folder. For example, you can replace the path of the local root folder with the path of the shared folder.
[0135] 302. Determine the target folder in the shared folder that belongs to a regular user. The target folder refers to the folder created for the regular user in the shared folder based on the regular user's registration request.
[0136] Step 302 may include: identifying multiple target folders within the shared folder; obtaining the account information of the currently logged-in ordinary user; and identifying the target folders within the multiple target folders that correspond to the ordinary user's account information.
[0137] The "regular user" in step 302 refers to the currently logged-in regular user. A currently logged-in regular user can be one who is logged in on the master node, and this user has access permissions to the target folder on each child node.
[0138] 303. Detect file access requests initiated by ordinary users to the target folder.
[0139] Optionally, the target folder may contain one or more files in its subfolders or within the target folder itself. The system can detect clicks performed by ordinary users on any file within the target folder, thus determining if a user has initiated a file access request for that file. Furthermore, when determining if a file access request has been initiated, the system can obtain the file path of that file and generate a file access request based on that file path.
[0140] 304. Send the file access request to the master node and receive the target file corresponding to the file access request sent by the master node.
[0141] The heterogeneous cluster information processing method provided in this application allows target child nodes to identify a shared folder within the master node of the heterogeneous cluster and replace their local root folder with the shared folder. This shared folder then becomes the local root folder, and local file access is redirected to the shared folder, enabling shared use. When a target folder belonging to a regular user is identified within the shared folder, that user can access the files within that folder, achieving synchronous access to the target folder across the entire heterogeneous cluster and avoiding access failures due to different system architectures. Furthermore, by initiating a file access request to the master node, the corresponding target file is retrieved. Accessing the shared folder in the public storage space ensures consistent file access paths and methods across multiple child nodes, enabling shared file use and effectively improving the overall system's information processing efficiency.
[0142] Furthermore, based on any of the above embodiments, detecting file access requests initiated by ordinary users for the target folder includes:
[0143] Receive the SSH configuration file sent by the master node, and configure the account information of the ordinary user in the SSH configuration file to the local machine, so as to have passwordless login permissions for the target folder of the ordinary user.
[0144] Based on having passwordless login permissions for the target folder for ordinary users, detect file access requests initiated by ordinary users for the target folder.
[0145] The specific contents of the SSH configuration file in this embodiment can be found in the description of the above embodiment, and will not be repeated here.
[0146] The heterogeneous cluster information processing method provided in this application allows target child nodes to receive SSH configuration files from the master node and access these files, granting them passwordless login permissions to target folders associated with ordinary user account information. The SSH configuration file establishes an access link between the child node and the target folder of an ordinary user, enabling seamless data transmission between each child node and the master node, thus improving data access efficiency while ensuring file security.
[0147] Furthermore, based on any of the above embodiments, detecting file access requests initiated by ordinary users for the target folder includes:
[0148] Based on the account information of ordinary users, detect file access requests initiated by ordinary users for the target folder, so that the file access requests include account information.
[0149] Optionally, based on the account information of a regular user, file access requests initiated by the regular user for the target folder are detected. This includes: based on the regular user's account information having the necessary access permissions, detecting click operations performed by the regular user on any file in the target folder, and generating a file access request based on the regular user's account information and the file corresponding to the click operation. The file in the file access request can be the target file requested by the regular user.
[0150] The heterogeneous cluster information processing method provided in this application can add the account information of ordinary users to the file access request when initiating the file access request, so that the account information required for the file access request is clear, and then the corresponding target folder is determined through the account information, thereby achieving targeted file access, associating file access with account information, and improving the efficiency and accuracy of file access.
[0151] Furthermore, based on any of the above embodiments, detecting file access requests initiated by ordinary users for the target folder includes:
[0152] Detect the target file selected by a regular user for their associated target folder and determine the file path of the target file.
[0153] Based on the file path of the target file and the account information of ordinary users, a file access request is generated and sent to the master node.
[0154] Receive the target file corresponding to the file path in the target folder of the ordinary user sent by the master node, and store the target file in the local storage space corresponding to the file path.
[0155] Detect the interactive processing performed by ordinary users on the target file and obtain the file interaction results.
[0156] The file interaction results are sent to the master node so that the master node updates the target file in the target folder according to the file interaction results, and synchronizes the updated target file to the target folders of the ordinary users corresponding to other child nodes.
[0157] The heterogeneous cluster information processing method provided in this application can add file path and account information to the file access request, so that the file access request carries two attributes: file path and account information. Based on more comprehensive information, the account information can be used for security verification. If the verification is successful, the target folder corresponding to the account information can be determined, and the target file corresponding to the file path in the target folder of the ordinary user can be obtained. The target file can then be sent to the target folder of the target child node, realizing dedicated file query and transmission, and improving the security and efficiency of file transmission.
[0158] Furthermore, based on any of the above embodiments, it also includes:
[0159] Identify other child nodes that are different from the target child node among multiple child nodes.
[0160] The file interaction result received from the master node refers to the file corresponding to the file access request initiated by the target user through other child nodes for the target user's target folder.
[0161] Based on the file interaction results, update the interactive files in the target folder corresponding to the local target user.
[0162] Alternatively, other child nodes can be child nodes that are different from the target child node among multiple child nodes.
[0163] Other child nodes can perform the same information processing method as the target child node, and use the target files of other child nodes as interaction files, send the file interaction results of the interaction files to the master node, and synchronize them to the target child nodes through the master node.
[0164] The heterogeneous cluster information processing method provided in this application allows the target child node to receive the file interaction results of the interaction files sent by the master node, so as to synchronize the file interaction results of the interaction files of each child node, ensure the consistency of each file, and avoid access anomalies caused by file inconsistency.
[0165] like Figure 4 The diagram shown is a signaling diagram of an information processing method for a heterogeneous cluster provided in an embodiment of this application. This method can be applied to heterogeneous clusters and may include:
[0166] 401. The master node responds to the file sharing request initiated by the management user, allocates a public storage area, and creates a shared folder corresponding to the public storage area.
[0167] 402. The master node controls the replacement of the root folders of multiple child nodes in a heterogeneous cluster with shared folders. Correspondingly, each child node can replace its local root folder with a shared folder.
[0168] 403. In response to a registration request initiated by a regular user, the master node creates the regular user's target folder in the shared folder. Correspondingly, multiple child nodes can then determine the target folder belonging to the regular user within the shared folder.
[0169] 404. The target child node in a multi-child node list can detect file access requests initiated by ordinary users for the target folder. The target child node can be any node in the multi-child node list that supports any architecture.
[0170] Figure 4 The example shown has two child nodes, which are merely illustrative and do not constitute a limitation on the number of child nodes. The number of child nodes and the architecture supported by each child node can be set according to usage requirements.
[0171] 405. The target child node can send a file access request to the master node, and the master node can receive the file access request sent by the target child node.
[0172] 406. The master node can respond to file access requests initiated by ordinary users through target child nodes by sending the target file corresponding to the file access request in the target folder to the target child node, based on the ordinary user's target folder. Correspondingly, the target child node can receive the target file corresponding to the file access request sent by the master node.
[0173] The heterogeneous cluster information processing method provided in this application allocates a public storage area, which can correspond to a shared folder. It then controls the replacement of the root folders of multiple child nodes in the heterogeneous cluster with the shared folder, allowing the file storage areas of multiple child nodes to be transferred to the public storage area of the master node. After a regular user initiates a registration request, a target folder for the regular user can be created in the shared folder, granting the regular user access rights to the target folder while other users do not. In response to a file access request initiated by a regular user through a target child node, the method sends the target file corresponding to the file access request in the target folder to the target child node, enabling the regular user to access the target file through the target child node. The target child node can be a child node supporting any architecture, allowing child nodes of different architectures to access the shared folder, achieving cross-node and cross-architecture access to folders. This solves the technical problem of not being able to directly perform file access between different system architectures, expands the scope of file access, and improves the information processing efficiency in heterogeneous clusters. Simultaneously, because user folders are exclusive, information processing efficiency in heterogeneous clusters can be improved while ensuring file security.
[0174] To further understand the technical solution of this application, such as Figure 5 The diagram shown is another signaling diagram of an embodiment of an information processing method for heterogeneous clusters provided in this application. This method can be applied to heterogeneous clusters and may include:
[0175] 501. The master node responds to the file sharing request initiated by the management user, allocates a public storage area, and creates a shared folder corresponding to the public storage area.
[0176] 502. The master node controls the replacement of the root folders of multiple child nodes in a heterogeneous cluster with shared folders. Correspondingly, each child node can replace its local root folder with a shared folder.
[0177] 503. In response to a registration request initiated by a regular user, the master node creates the regular user's target folder in the shared folder. Correspondingly, multiple child nodes can then determine the target folder belonging to the regular user within the shared folder.
[0178] 504. The master node can create account information for ordinary users and set access permissions for those accounts to the target folder.
[0179] 505. The master node can determine the SSH configuration file corresponding to the account information of ordinary users and distribute the SSH configuration file to multiple child nodes.
[0180] 506. The master node controls multiple child nodes to configure SSH configuration files respectively. Correspondingly, each child node can configure the account information of ordinary users in the SSH configuration file to the local machine, so as to have passwordless login permissions for ordinary users to the target folder.
[0181] 507. A target child node among multiple child nodes can detect the target file selected by a regular user for its associated target folder and determine the file path of the target file. The target child node can be a node from among multiple child nodes that supports any architecture.
[0182] 508. The target child node generates a file access request based on the file path of the target file and the account information of the ordinary user, and sends the file access request to the master node. Correspondingly, the master node can receive the file access request.
[0183] 509. The master node can respond to file access requests initiated by ordinary users through target child nodes and obtain the file path and account information corresponding to the file access request.
[0184] 510. The master node can determine the target file corresponding to the file path in the target folder of a regular user, based on the fact that the account information in the file access request has access permissions to the target folder of a regular user.
[0185] 511. The master node can send the target file to the target folder corresponding to the target child node. In turn, the target child node can receive the target file corresponding to the file access request sent by the master node.
[0186] 512. The target sub-node can detect the interactive processing performed by ordinary users on the target file and obtain the file interaction results, including the update results of the target file.
[0187] 513. The target child node can send the file interaction results to the master node, and the master node can receive the file interaction results accordingly.
[0188] 514. The master node updates the target file in the target folder according to the file interaction results, and synchronizes the updated target file to the target folders of the ordinary users corresponding to other child nodes.
[0189] 515. Other child nodes can update the target files in the target folder of ordinary users on the local machine according to the update results, under the control of the master node.
[0190] The heterogeneous cluster information processing method provided in this application allocates a public storage area, which can correspond to a shared folder. It then controls the replacement of the root folders of multiple child nodes in the heterogeneous cluster with the shared folder, allowing the file storage areas of multiple child nodes to be transferred to the public storage area of the master node. After a regular user initiates a registration request, a target folder for the regular user can be created in the shared folder, granting the regular user access rights to the target folder while other users do not. In response to a file access request initiated by a regular user through a target child node, the method sends the target file corresponding to the file access request in the target folder to the target child node, enabling the regular user to access the target file through the target child node. The target child node can be a child node supporting any architecture, allowing child nodes of different architectures to access the shared folder, achieving cross-node and cross-architecture access to folders. This solves the technical problem of not being able to directly perform file access between different system architectures, expands the scope of file access, and improves the information processing efficiency in heterogeneous clusters. Simultaneously, because user folders are exclusive, information processing efficiency in heterogeneous clusters can be improved while ensuring file security.
[0191] like Figure 6 The diagram shown is a structural schematic of an information processing device for a heterogeneous cluster provided in an embodiment of this application. The information processing device 600 for the heterogeneous cluster can be located on the master node, and may include:
[0192] The first response unit 601 is used to respond to file sharing requests initiated by management users, allocate public storage areas, and create shared folders corresponding to the public storage areas.
[0193] File replacement unit 602 is used to control the replacement of the root folders corresponding to multiple child nodes in a heterogeneous cluster with shared folders.
[0194] The second response unit 603 is used to respond to a registration request initiated by a regular user and create the regular user's target folder in the shared folder.
[0195] The third response unit 604 is used to respond to a file access request initiated by a regular user through a target sub-node, and to send the target file corresponding to the file access request in the target folder to the target sub-node based on the regular user's target folder.
[0196] Furthermore, based on any of the above embodiments, it also includes:
[0197] The permission settings unit is used to create account information for ordinary users and to set access permissions for ordinary users' account information to target folders.
[0198] The third response unit includes:
[0199] The account retrieval module is used to respond to file access requests initiated by ordinary users through target child nodes and retrieve the account information corresponding to the file access request.
[0200] The permission judgment module is used to determine whether the account information corresponding to the file access request has access permissions to the target folder of a regular user.
[0201] The file acquisition module is used to output the target file in the target folder corresponding to the file access request, based on the target folder of a regular user, if the request is valid.
[0202] Furthermore, based on any of the above embodiments, it also includes:
[0203] The configuration determination unit is used to determine the SSH configuration file corresponding to the account information of ordinary users and distribute the SSH configuration file to multiple child nodes.
[0204] The configuration distribution unit is used to control multiple child nodes to configure SSH configuration files, so that each child node has passwordless login permissions to the target folder associated with the account information of a regular user.
[0205] The permission application unit, based on the fact that each sub-node has passwordless login permissions to associate the target folder with the account information of ordinary users, receives file access requests sent by the target sub-node.
[0206] Furthermore, based on any of the above embodiments, it also includes:
[0207] The file synchronization unit is used to synchronize the target folder of a regular user to the shared folder of each of the multiple child nodes, so that the target folder of the regular user is created in the shared folder of each of the multiple child nodes.
[0208] Furthermore, based on any of the above embodiments, the file acquisition module includes:
[0209] The information acquisition submodule is used to obtain the file path and account information corresponding to the file access request.
[0210] The file determination submodule is used to determine the target file in the target folder of a regular user that corresponds to the file path, based on the account information in the file access request indicating that the user has access rights to the target folder.
[0211] The file sending submodule is used to send the target file to the target folder corresponding to the target child node, so that ordinary users can perform file interaction processing on the target file in the target child node and obtain the file interaction results.
[0212] The result receiving submodule is used to receive the file interaction results returned by the target child node.
[0213] The result synchronization submodule is used to update the target file in the target folder according to the file interaction results, and synchronize the updated target file to the target folder of the ordinary user corresponding to other child nodes.
[0214] Furthermore, based on any of the above embodiments, it also includes:
[0215] The login detection unit is used to detect login requests triggered by ordinary users and obtain the account information of ordinary users.
[0216] The verification receiving unit is used to receive the file access request sent by the target child node if the account information of the ordinary user is successfully verified. The file access request is generated by the target child node based on the file path of the target file after detecting the target file selected by the ordinary user.
[0217] like Figure 7 The diagram shown is another structural schematic of an information processing device for a heterogeneous cluster provided in this application embodiment. The information processing device 700 for the heterogeneous cluster can be located at a target child node, which can be a node supporting any architecture. The information processing device 700 for the heterogeneous cluster may include:
[0218] The shared determination unit 701 is used to determine the shared folder in the master node of the heterogeneous cluster and replace the local root folder with the shared folder, which is the folder corresponding to the public storage area in the master node.
[0219] File determination unit 702 is used to determine the target folder in the shared folder that belongs to a regular user. The target folder refers to the folder created for the regular user in the shared folder based on the regular user's registration request.
[0220] The request detection unit 703 is used to detect file access requests initiated by ordinary users for a target folder.
[0221] The file interaction unit 704 is used to send file access requests to the master node and receive the target file corresponding to the file access request sent by the master node.
[0222] Furthermore, based on any of the above embodiments, the request detection unit includes:
[0223] Configure the receiving module to receive the SSH configuration file sent by the master node, and configure the account information of ordinary users in the SSH configuration file to the local machine so as to have passwordless login permissions for ordinary users to the target folder.
[0224] The request detection module is used to detect file access requests initiated by ordinary users to the target folder, based on having passwordless login permissions for the target folder.
[0225] Furthermore, based on any of the above embodiments, detecting file access requests initiated by ordinary users for the target folder includes:
[0226] Based on the account information of ordinary users, detect file access requests initiated by ordinary users for the target folder, so that the file access requests include account information.
[0227] Furthermore, based on any of the above embodiments, the request detection unit includes:
[0228] The path determination module is used to detect the target file selected by a regular user for their associated target folder and determine the file path of the target file.
[0229] The request processing module is used to generate a file access request based on the file path of the target file and the account information of ordinary users, and send the file access request to the master node.
[0230] The file receiving module is used to receive the target file corresponding to the file path in the target folder of a regular user sent by the master node, and store the target file in the local storage space corresponding to the file path.
[0231] The result detection module is used to detect the interactive processing performed by ordinary users on the target file and obtain the file interaction results.
[0232] The result feedback module is used to send the file interaction results to the master node, so that the master node can update the target file in the target folder according to the file interaction results, and synchronize the updated target file to the target folder of the ordinary user corresponding to other child nodes.
[0233] Figure 8 A schematic diagram of the hardware structure of an electronic device according to an embodiment of this application is shown. Figure 8 As shown, the electronic device 80 is used to implement the operations corresponding to the electronic device in any of the above method embodiments. The electronic device 80 in this embodiment may include: a memory 81, a processor 82, a transceiver 83, and a bus 84. The electronic device can be a master node or any child node in the above embodiments.
[0234] Memory 81 is used to store computer programs. Memory 81 may include high-speed random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device, or a USB flash drive, external hard drive, read-only memory, disk, or optical disc, etc.
[0235] Processor 82 is used to execute the computer program stored in the memory to implement the heating control method in the above embodiments. For details, please refer to the relevant descriptions in the foregoing method embodiments. The processor 82 can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by the hardware processor, or implemented by a combination of hardware and software modules in the processor.
[0236] Alternatively, the memory 81 can be either standalone or integrated with the processor 82.
[0237] When the memory 81 is a device independent of the processor 82, the electronic device 80 may further include a bus 84. This bus 84 is used to connect the memory 81 and the processor 82. This bus 84 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.
[0238] Bus 84 can be connected to processor 81 via a communication interface. Processor 82 can control the communication interface. The communication interface can be used to enable communication with other nodes.
[0239] The electronic device provided in this embodiment can be used to execute the above-described information processing method for heterogeneous clusters. Its implementation method and technical effect are similar, and will not be described again in this embodiment.
[0240] This application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, is used to implement the methods provided in the various embodiments described above.
[0241] The computer-readable storage medium can be a computer storage medium or a communication medium. A communication medium includes any medium that facilitates the transfer of a computer program from one location to another. A computer storage medium can be any available medium accessible to a general-purpose or special-purpose computer. For example, a computer-readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the computer-readable storage medium. Of course, the computer-readable storage medium can also be a component of the processor. The processor and the computer-readable storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the ASIC can reside in a user equipment. Of course, the processor and the computer-readable storage medium can also exist as discrete components in a communication device.
[0242] Specifically, the computer-readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random-Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The storage medium can be any available medium accessible to general-purpose or special-purpose computers.
[0243] This application also provides a computer program product comprising a computer program stored in a computer-readable storage medium. At least one processor of the device can read the computer program from the computer-readable storage medium, and the at least one processor executes the computer program to cause the device to implement the methods provided in the various embodiments described above.
[0244] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or modules may be electrical, mechanical, or other forms.
[0245] The modules can be physically separate, for example, installed in different locations within a single device, installed on different devices, distributed across multiple network units, or distributed across multiple processors. Alternatively, the modules can be integrated, for example, installed in the same device, or integrated into a single codebase. The modules can exist in hardware form, software form, or a combination of both. This application can select some or all of the modules to achieve the objectives of this embodiment based on actual needs.
[0246] When the various modules are implemented as integrated software functional modules, they can be stored in a computer-readable storage medium. The aforementioned software functional modules, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute some steps of the methods of the various embodiments of this application.
[0247] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some of the steps in the figures may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.
[0248] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the following claims.
[0249] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.
Claims
1. An information processing method for heterogeneous clusters, characterized in that, The method, applied to the master node of a heterogeneous cluster, includes: In response to a file sharing request initiated by a management user, a public storage area is allocated, and a shared folder corresponding to the public storage area is created; The root folders corresponding to multiple child nodes in the heterogeneous cluster are replaced with the shared folder. In response to a registration request initiated by a regular user, a target folder for the regular user is created in the shared folder; The target folder of the ordinary user is synchronized to the shared folder of each of the multiple child nodes, so that the target folder of the ordinary user is created in the shared folder of each of the multiple child nodes; Determine the SSH configuration file corresponding to the account information of the ordinary user, and distribute the SSH configuration file to the multiple child nodes; The multiple child nodes are configured with the SSH configuration file respectively, so that the multiple child nodes have passwordless login permissions to the target folder associated with the account information of the ordinary user; Based on the fact that each sub-node has passwordless login permission to associate the target folder with the account information of the ordinary user, it receives file access requests initiated by the ordinary user through the target sub-node; In response to the file access request, based on the target folder of the ordinary user, the target file corresponding to the file access request in the target folder is sent to the target child node, so that the ordinary user can perform file interaction processing on the target file at the target child node and obtain the file interaction result; the target child node is a child node that supports any architecture; Receive the file interaction result fed back by the target child node; Update the target file in the target folder according to the file interaction result, and synchronize the update result of the target file to the target folder of the ordinary user corresponding to other child nodes.
2. The method according to claim 1, characterized in that, After replacing the root folders corresponding to multiple child nodes in the heterogeneous cluster with the shared folder, the method further includes: Establish the account information of the ordinary user, and establish the access permissions of the ordinary user's account information to the target folder; In response to the file access request initiated by the ordinary user through the target child node, based on the ordinary user's target folder, the target file corresponding to the file access request in the target folder is output, including: In response to the file access request initiated by the ordinary user through the target child node, obtain the account information corresponding to the file access request; Determine whether the account information corresponding to the file access request has access permissions to the target folder of the ordinary user. If so, then based on the target folder of the ordinary user, output the target file in the target folder that corresponds to the file access request.
3. The method according to claim 1 or 2, characterized in that, The step of sending the target file corresponding to the file access request in the target folder to the target child node based on the target folder of the ordinary user includes: Obtain the file path and account information corresponding to the file access request; Based on the determination that the account information in the file access request has access rights to the target folder of the ordinary user, the target file corresponding to the file path in the target folder of the ordinary user is determined; Send the target file to the target folder corresponding to the target child node.
4. The method according to claim 3, characterized in that, Prior to responding to the file access request initiated by the ordinary user through the target child node, the method further includes: Detect login requests triggered by ordinary users and obtain the account information of those ordinary users; If the account information of the ordinary user is successfully verified, the file access request sent by the target sub-node is received. The file access request is generated by the target sub-node based on the file path of the target file after detecting the target file selected by the ordinary user.
5. An information processing method for heterogeneous clusters, characterized in that, The method, applied to target child nodes in a heterogeneous cluster, wherein the target child node is a node supporting any architecture, includes: Determine the shared folder in the master node of the heterogeneous cluster, and replace the local root folder with the shared folder, wherein the shared folder is the folder corresponding to the public storage area in the master node; Receive the target folder of the ordinary user synchronized by the master node, and create the target folder of the ordinary user in the shared folder of the target child node. The target folder refers to the folder created for the ordinary user in the shared folder based on the ordinary user's registration request. Receive the SSH configuration file sent by the master node, and configure the account information of the ordinary account in the SSH configuration file to the local machine, so as to have passwordless login permission for the ordinary user's target folder; Based on having passwordless login permissions for the target folder of the ordinary user, detect the file access request initiated by the ordinary user for the target folder; The file access request is sent to the master node, and the target file corresponding to the file access request sent by the master node is received; The interaction processes performed by the ordinary user on the target file are detected, and the file interaction results are obtained; The file interaction result is sent to the master node so that the master node updates the target file in the target folder according to the file interaction result, and synchronizes the update result of the target file to the target folder of the ordinary user corresponding to other child nodes.
6. The method according to claim 5, characterized in that, The detection of file access requests initiated by the ordinary user for the target folder includes: Based on the account information of the ordinary user, detect the file access request initiated by the ordinary user for the target folder, so that the account information is included in the file access request.
7. The method according to claim 5 or 6, characterized in that, The detection of file access requests initiated by the ordinary user for the target folder includes: Detect the target file selected by the ordinary user for its associated target folder, and determine the file path of the target file; Based on the file path of the target file and the account information of the ordinary user, a file access request is generated and sent to the master node; The system receives the target file corresponding to the file path in the target folder of the ordinary user sent by the master node, and stores the target file in the local storage space corresponding to the file path.
8. An information processing device for heterogeneous clusters, characterized in that, Located in the master node, including: The first response unit is used to respond to a file sharing request initiated by a management user, allocate a public storage area, and create a shared folder corresponding to the public storage area; The file replacement unit is used to control the replacement of the root folders corresponding to multiple child nodes in the heterogeneous cluster with the shared folder; The second response unit is used to respond to a registration request initiated by a regular user and create the regular user's target folder in the shared folder; The file synchronization unit is used to synchronize the target folder of the ordinary user to the shared folder of each of the multiple child nodes, so that the target folder of the ordinary user is created in the shared folder of each of the multiple child nodes. The configuration determination unit is used to determine the SSH configuration file corresponding to the account information of the ordinary user, and to distribute the SSH configuration file to the multiple child nodes; The configuration distribution unit is used to control the multiple child nodes to configure the SSH configuration file respectively, so that the multiple child nodes have passwordless login permissions to the target folder associated with the account information of the ordinary user; The permission application unit is used to receive file access requests initiated by ordinary users through target sub-nodes, based on the fact that each sub-node has passwordless login permissions to the target folder associated with the account information of the ordinary user; The third response unit is used to respond to the file access request and, based on the target folder of the ordinary user, send the target file corresponding to the file access request in the target folder to the target child node, so that the ordinary user can perform file interaction processing on the target file at the target child node and obtain the file interaction result; the target child node is a child node that supports any architecture; The file acquisition module is used to receive the file interaction result fed back by the target child node; update the target file in the target folder according to the file interaction result; and synchronize the update result of the target file to the target folder of the ordinary user corresponding to other child nodes.
9. An information processing device in a heterogeneous cluster, characterized in that, Located in the target child node, the target child node is a node that supports any architecture, including: A shared determination unit is used to determine the shared folder in the master node of the heterogeneous cluster and replace the local root folder with the shared folder, wherein the shared folder is the folder corresponding to the public storage area in the master node; The file determination unit is used to receive the target folder of the ordinary user synchronized by the master node, so as to create the target folder of the ordinary user in the shared folder of the target child node. The target folder refers to the folder created for the ordinary user in the shared folder based on the ordinary user's registration request. The configuration receiving module is used to receive the SSH configuration file sent by the master node and configure the account information of the ordinary account in the SSH configuration file to the local machine so as to have passwordless login permission for the ordinary user's target folder; the request detection unit is used to detect the file access request initiated by the ordinary user for the target folder based on having passwordless login permission for the ordinary user's target folder. The file interaction unit is used to send the file access request to the master node and receive the target file corresponding to the file access request sent by the master node; The request detection unit is further configured to detect the interaction processing performed by the ordinary user on the target file, obtain the file interaction result, and send the file interaction result to the master node so that the master node updates the target file in the target folder according to the file interaction result, and synchronizes the update result of the target file to the target folder of the ordinary user corresponding to other child nodes.
10. An electronic device, characterized in that, include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to implement the information processing method for heterogeneous clusters as described in any one of claims 1-7.
11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the information processing method for heterogeneous clusters as described in any one of claims 1-7.
12. A computer program product, characterized in that, It includes a computer program that, when executed by a processor, implements the information processing method for heterogeneous clusters as described in any one of claims 1-7.
Citation Information
Patent Citations
Implementation of password-free building method of big data cluster
CN111585786A
User information synchronization method and device, equipment, storage medium and program product
CN114928620A