Management method and device of macOS cloud computer, computer equipment and storage medium
By adding mac instance data tables and importing mac hardware physical information in the Nova component of OpenStack, combining PDU and ceph technology, the high cost and low efficiency problems of traditional macOS cloud computer management methods are solved, and efficient management of macOS cloud computer resources is achieved and use.
Patent Information
- Application Number
- CN202411691473.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-25
- Publication Date
- 2025-02-18
AI Technical Summary
The traditional macOS cloud computer management method relies on the IPMI interface and cannot effectively manage hardware that does not support IPMI, such as mac mini. The project volume of developing virtualization solutions on macOS systems is high, resulting in high costs and low resource utilization efficiency.
By adding mac instance data table to OpenStack's Nova component, obtaining and importing physical information of mac's supporting hardware, users can be fully assigned and managed, and remote power management is used to manage data disks through ceph, and system backup is used to use system backup tools for system backup. and restore.
It realizes the orderly allocation and efficient utilization of macOS cloud computer resources, reduces the hardware acquisition and maintenance costs, solves the management problem of not supporting IPMI hardware, and improves the flexibility and scalability of data storage.
Smart Images

Figure CN119473621A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of cloud resource management, and in particular to a method, apparatus, computer device, computer-readable storage medium, and computer program product for managing a macOS cloud computer. Background Art
[0002] Nowadays, the macOS system relies on Mac supporting hardware to run, which means that each development needs to purchase the corresponding Mac supporting hardware, which is very costly. Therefore, in order to reduce costs, macOS cloud computers are generally used to meet users' needs for the macOS system.
[0003] The traditional way is to use the corresponding Mac supporting hardware as the basic equipment of macOS cloud computers, and then use the bare metal method to manage batches of Mac supporting hardware. However, traditional bare metal management relies on the IPMI interface to monitor the health status of Mac supporting hardware, and is also responsible for recording the information and logs of various Mac supporting hardware. However, some models of Mac supporting hardware (such as mac mini) do not support IPMI, and the solutions provided by mainstream manufacturers of macOS cloud computers rely on dedicated customized hardware devices and cannot be directly copied or migrated. In addition, due to the limitations of the macOS system, the amount of engineering required to develop virtualization solutions on it is large.
[0004] The present invention aims to provide a method, apparatus, computer device, computer-readable storage medium and computer program product for managing macOS cloud computers, which can achieve the purpose of managing macOS cloud computers, while solving problems such as remote power management, data backup management and data disk mounting of Mac supporting hardware, and realize orderly allocation and efficient utilization of resources. Summary of the invention
[0005] Based on this, it is necessary to provide a method, device, computer equipment, computer-readable storage medium and computer program product for managing macOS cloud computers, which can achieve the purpose of managing macOS cloud computers, solve problems such as remote power management, data backup management and data disk mounting of Mac supporting hardware, and realize orderly allocation and efficient utilization of resources.
[0006] In a first aspect, the present application provides a method for managing a macOS cloud computer, which is applied to the Nova component of the cloud computing management platform OpenStack, including:
[0007] Add a mac instance data table in the Nova component; wherein the mac instance data table is used to indicate that the macOS cloud computer runs as a macOS instance;
[0008] Obtain physical information of batches of mac supporting hardware and import it into the mac instance data table;
[0009] When the import is completed, the macOS cloud computer recorded in the mac instance data table is managed for exclusive user allocation;
[0010] Use power distribution units (PDUs) to remotely manage power for batches of Mac hardware.
[0011] Add data disks to macOS cloud computers through network ports, and use the distributed storage system Ceph to manage data disks of Mac supporting hardware;
[0012] Use system backup tools to perform system backup and restore management on macOS cloud computers.
[0013] In one of the embodiments, the physical information of the mac supporting hardware includes the CPU quantity, memory capacity, serial number, disk capacity, switch port and mac address of the mac supporting hardware.
[0014] In one embodiment, the obtaining of physical information of a batch of mac supporting hardware includes:
[0015] Obtain physical information import requests for batches of Mac supporting hardware;
[0016] In response to the physical information import request, a connection is established with the batch of mac supporting hardware to obtain the physical information of the mac supporting hardware, and the physical information of the batch of mac supporting hardware is integrated.
[0017] In one embodiment, the method further comprises:
[0018] When the import is completed, the corresponding macOS cloud computer is queried from the mac instance data table through a preset query method; wherein the preset query method includes a macOS instance list query and a single macOS instance.
[0019] In one embodiment, the user-exclusive allocation management of the macOS cloud computer recorded in the mac instance data table includes:
[0020] Receive user information and network interface information sent by the cloud computing management platform OpenStack, and store them in the mac instance data table;
[0021] According to the user information and the network interface information, determine the corresponding macOS cloud computer and configure the network interface to connect the macOS cloud computer to the network;
[0022] The macOS cloud computers recorded in the mac instance data table are managed for exclusive user allocation, and user allocation information is generated and stored in the mac instance data table.
[0023] In one embodiment, the method further comprises:
[0024] Receiving a cloud computer de-allocation request sent by the cloud computing management platform OpenStack;
[0025] In response to the cloud computer unallocation request, the corresponding macOS cloud computer is disconnected from the network and the user allocation information recorded in the mac instance data table is deleted.
[0026] In a second aspect, the present application further provides a management device for a macOS cloud computer, the device comprising a Nova component, and a mac instance data table is added to the Nova component; wherein the mac instance data table is used to indicate that the macOS cloud computer runs as a macOS instance;
[0027] The device also includes:
[0028] An information acquisition module, used to acquire physical information of batches of Mac supporting hardware and import it into the macinstance data table;
[0029] An allocation module, used for performing exclusive user allocation management on the macOS cloud computers recorded in the mac instance data table when the import is completed;
[0030] Management module, used to use power distribution unit PDU to remotely manage the power supply of batches of Mac supporting hardware;
[0031] The management module is also used to add data disks to macOS cloud computers through network ports, and use the distributed storage system Ceph to manage data disks of Mac supporting hardware;
[0032] The management module is also used to use the system backup tool to perform system backup and restore management on macOS cloud computers.
[0033] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0034] Add a mac instance data table in the Nova component; wherein the mac instance data table is used to indicate that the macOS cloud computer runs as a macOS instance;
[0035] Obtain physical information of batches of mac supporting hardware and import it into the mac instance data table;
[0036] When the import is completed, the macOS cloud computer recorded in the mac instance data table is managed for exclusive user allocation;
[0037] Use power distribution units (PDUs) to remotely manage power for batches of Mac hardware.
[0038] Add data disks to macOS cloud computers through network ports, and use the distributed storage system Ceph to manage data disks of Mac supporting hardware;
[0039] Use system backup tools to perform system backup and restore management on macOS cloud computers.
[0040] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
[0041] Add a mac instance data table in the Nova component; wherein the mac instance data table is used to indicate that the macOS cloud computer runs as a macOS instance;
[0042] Obtain physical information of batches of mac supporting hardware and import it into the mac instance data table;
[0043] When the import is completed, the macOS cloud computer recorded in the mac instance data table is managed for exclusive user allocation;
[0044] Use power distribution units (PDUs) to remotely manage power for batches of Mac hardware.
[0045] Add data disks to macOS cloud computers through network ports, and use the distributed storage system Ceph to manage data disks of Mac supporting hardware;
[0046] Use system backup tools to perform system backup and restore management on macOS cloud computers.
[0047] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:
[0048] Add a mac instance data table in the Nova component; wherein the mac instance data table is used to indicate that the macOS cloud computer runs as a macOS instance;
[0049] Obtain physical information of batches of mac supporting hardware and import it into the mac instance data table;
[0050] When the import is completed, the macOS cloud computer recorded in the mac instance data table is managed for exclusive user allocation;
[0051] Use power distribution units (PDUs) to remotely manage power for batches of Mac hardware.
[0052] Add data disks to macOS cloud computers through network ports, and use the distributed storage system Ceph to manage data disks of Mac supporting hardware;
[0053] Use system backup tools to perform system backup and restore management on macOS cloud computers.
[0054] The above-mentioned macOS cloud computer management method, device, computer equipment, computer-readable storage medium and computer program product, by using macOS cloud computers, users do not need to purchase expensive mac supporting hardware, but use cloud computing platforms such as OpenStack's Nova component to implement the operation and management of macOS instances, which can greatly reduce the cost of hardware purchase and maintenance. By adding a mac instance data table in the Nova component, macOS cloud computer resources can be effectively managed and allocated, user exclusive allocation management can be achieved, and resource utilization efficiency can be improved. The use of power distribution units PDUs for batch remote power management of mac supporting hardware solves the problem that some mac supporting hardware (such as mac mini) do not support the IPMI interface, and enhances the control ability of hardware. Through the system backup tool, the system backup and restore management of macOS cloud computers can be realized to ensure data security and system reliability. Adding data disks to macOS cloud computers through network ports, and using distributed storage systems such as ceph to implement data disk management, improves the flexibility and scalability of data storage. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0056] FIG1 is an application environment diagram of a method for managing a macOS cloud computer in one embodiment;
[0057] FIG2 is a schematic diagram of a flow chart of a method for managing a macOS cloud computer in one embodiment;
[0058] FIG3 is a flow chart of a method for managing a macOS cloud computer in another embodiment;
[0059] FIG4 is a flow chart of a method for managing a macOS cloud computer in yet another embodiment;
[0060] FIG5 is a structural block diagram of a management device for a macOS cloud computer in one embodiment;
[0061] FIG6 is a simplified structural diagram of a management device for a macOS cloud computer in the most detailed embodiment;
[0062] FIG. 7 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0063] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0064] The management method of the macOS cloud computer provided in the embodiment of the present application can be applied to the application environment shown in Figure 1. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers.
[0065] The Nova component (i.e., server 104) of the cloud computing management platform OpenStack obtains the physical information of a batch of mac supporting hardware (i.e., terminal 102) and imports it into the mac instance data table; when the import is completed, the macOS cloud computers recorded in the macinstance data table are managed for user exclusive allocation; the power distribution unit PDU is used to perform remote power management of a batch of mac supporting hardware; a data disk is added to the macOS cloud computer through the network port, and the data disk management of the mac supporting hardware is implemented using the distributed storage system ceph; and the system backup tool is used to perform system backup and restore management of the macOS cloud computer.
[0066] The terminal 102 may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, IoT devices, and portable wearable devices. The IoT devices may be smart speakers, smart TVs, smart air conditioners, smart car devices, projection devices, etc. Portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. Head-mounted devices may be virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc. The server 104 may be an independent physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server that provides cloud computing services.
[0067] In an exemplary embodiment, as shown in FIG2 , a method for managing a macOS cloud computer is provided, and the method is applied to the server in FIG1 as an example for explanation, including the following steps S202 to S208 . Among them:
[0068] Step S202, add a mac instance data table in the Nova component; wherein the mac instance data table is used to indicate that the macOS cloud computer runs as a macOS instance.
[0069] Specifically, the mac instance data table is used to indicate that a macOS cloud computer runs as a macOS instance. This means that each macOS cloud computer will have a corresponding entry in the Nova component, recording its running status, configuration information, etc. Through this data table, the Nova component can manage the life cycle of the macOS cloud computer, including creating, running, stopping, and deleting macOS instances.
[0070] The mac instance data table is also used to record which macOS cloud computer instances are assigned to specific users, so as to implement exclusive user allocation management. The data table can also record operations performed on macOS cloud computers, such as power on and off, system restore, data disk mounting, etc., for easy tracking and management. Through the mac instance data table, the Nova component can allocate resources to macOS cloud computers, such as creating and binding network interfaces, to enable networking of macOS cloud computers.
[0071] In general, the purpose of adding the mac instance data table is to provide a dedicated management framework for macOS cloud computers in the Nova component, so that it can manage macOS cloud computers like traditional virtual machines, while taking into account the particularities of macOS cloud computers, such as remote power management, data disk management, and system restore. Such a design helps to improve the management efficiency and flexibility of macOS cloud computers, while reducing interference with existing virtual machine management systems.
[0072] Step S204, obtaining physical information of a batch of mac supporting hardware and importing it into the mac instance data table.
[0073] Specifically, in order to accurately manage and monitor each Mac-related hardware (such as Mac Mini) in the cloud computing management platform, it is necessary to first collect detailed physical information of these hardware. Usually, this process is completed through automated scripts or tools to facilitate the processing of information of large numbers of devices. Batch import can significantly improve work efficiency, avoid manually entering detailed information for each device, and reduce errors and time consumption. Through the Mac instance data table, it is easier to allocate resources and manage Mac-related hardware. Administrators can view, edit and manage this hardware information through the user interface, improving the convenience and intuitiveness of operations.
[0074] Step S206: When the import is completed, the macOS cloud computer recorded in the mac instance data table is managed for exclusive user allocation.
[0075] Specifically, user exclusive allocation means that each macOS cloud computer instance will be assigned to a specific user, and this user will have exclusive use of this instance, and other users cannot use the same instance at the same time. It involves tracking and managing these macOS cloud computer instances assigned to users, ensuring that each user can access their assigned instances and can operate them, such as starting, stopping, and maintaining them. The exclusivity of allocation is emphasized, that is, during the allocation period, the macOS cloud computer instance assigned to a specific user will not be used by other users, ensuring the exclusivity and security of resources. Through exclusive allocation management, macOS cloud computer resources can be used more effectively, resource conflicts can be avoided, and resource utilization can be improved. At the same time, users can operate the macOS cloud computer instances assigned to them according to their needs, such as installing software, storing data, etc., without worrying about data leakage or resource preemption. The management platform can flexibly control the allocation and recovery of macOS cloud computer instances, and dynamically adjust according to user needs and resource usage.
[0076] Step S208, use the power distribution unit PDU to perform remote power management of batch mac supporting hardware; add a data disk to the macOS cloud computer through the network port, and use the distributed storage system ceph to implement data disk management of the mac supporting hardware; use the system backup tool to perform system backup and restore management on the macOS cloud computer.
[0077] Specifically, remote power management (using power distribution units (PDUs):
[0078] PDU is a device used to distribute power and manage power sockets. It can control the power status of devices connected to it. Through PDU, administrators can remotely control the power status of Mac supporting hardware (such as Mac mini), including remote power on and off. PDU supports batch operations, allowing power management of multiple devices at the same time, improving management efficiency. Using PDU for remote power management can reduce the need for physical contact with hardware, saving time and resources, while improving the safety of operations.
[0079] Data disk management (through network ports and distributed storage system Ceph):
[0080] Through the network port, you can connect the macOS cloud computer to external storage resources, such as network attached storage (NAS) or storage area network (SAN). Ceph is an open source distributed storage system that provides high-performance, high-reliability and scalable data storage solutions. Through the network port, you can add the storage space in the Ceph system as a data disk to the macOS cloud computer to expand the storage capacity. Using Ceph for data disk management can provide flexible data storage and backup solutions, while supporting high availability and disaster recovery of data.
[0081] System backup and restore management (using system backup tools):
[0082] System backup tools such as the built-in Time Machine in macOS or other third-party backup tools are used to create snapshots of the system status. Regularly back up the system status of macOS cloud computers, including the operating system, applications, and user data, to prevent data loss. When a system problem occurs or needs to be restored to a previous state, the backup tool can be used to restore the system to the state at the time of the backup. System backup and restore management ensures data security and system reliability, allowing for rapid service recovery and reducing the impact of system failures.
[0083] In the above-mentioned management method of macOS cloud computers, by using macOS cloud computers, users do not need to purchase expensive mac supporting hardware, but can use cloud computing platforms such as OpenStack's Nova component to implement the operation and management of macOS instances, which can greatly reduce the cost of hardware purchase and maintenance. By adding a mac instance data table in the Nova component, macOS cloud computer resources can be effectively managed and allocated, user exclusive allocation management can be achieved, and resource utilization efficiency can be improved. The use of power distribution units PDUs for batch remote power management of mac supporting hardware solves the problem that some mac supporting hardware (such as mac mini) does not support the IPMI interface, and enhances the control ability of hardware. Through the system backup tool, the system backup and restore management of macOS cloud computers can be implemented to ensure data security and system reliability. Adding data disks to macOS cloud computers through network ports and using distributed storage systems such as ceph to implement data disk management improves the flexibility and scalability of data storage.
[0084] In an exemplary embodiment, the physical information of the mac supporting hardware includes the CPU quantity, memory capacity, serial number, disk capacity, switch port and mac address of the mac supporting hardware.
[0085] Specifically, the number of CPUs refers to the number of cores of the central processing unit (CPU) installed in the hardware that comes with the Mac. Memory capacity, also known as RAM (random access memory) capacity, refers to the amount of memory installed in the device. Each hardware device has a unique serial number that is used to identify and track the device. Serial numbers are usually assigned by the manufacturer when the device is manufactured and are very important for warranty, repair, and asset management. Disk capacity refers to the storage capacity of the hard disk or solid-state drive inside the device. Disk capacity determines how much data and applications can be stored and is a key factor in evaluating storage needs and performance. Switch port refers to the physical interface that a device connects to a network, usually a port on a network switch, which helps network administrators understand the network connectivity of a device and how to configure the network to ensure proper communication between devices. The media access control address (MAC address) is a unique identifier for a network interface card (NIC). Each network card is assigned a globally unique MAC address when it is manufactured, which is used for device identification and communication at the network layer.
[0086] In this embodiment, this information is imported into the mac instance data table to facilitate automated management and maintenance.
[0087] In an exemplary embodiment, as shown in FIG3 , obtaining physical information of a batch of MAC supporting hardware includes:
[0088] Step S302, obtaining a batch of physical information import requests for mac supporting hardware;
[0089] Step S304, in response to the physical information import request, establish a connection with the batch of mac supporting hardware to obtain the physical information of the mac supporting hardware, and integrate the physical information of the batch of mac supporting hardware.
[0090] Specifically, the purpose of obtaining a batch of physical information import requests for Mac supporting hardware is to collect physical information of a batch of Mac supporting hardware (such as Mac mini).
[0091] After receiving the import request, the Nova component of the cloud computing management platform OpenStack needs to process the request. Establish communication with each Mac supporting hardware through a physical or virtual network connection. This involves using specific management interfaces such as SSH, IPMI or other remote management interfaces. Once the connection is established, the Nova component will query the physical information of each hardware, including CPU model and quantity, memory size, hard disk capacity, serial number, network interface information (including switch port and MAC address), etc.
[0092] The collected physical information needs to be integrated and formatted for easy storage and management. This involves data cleaning (removing invalid or erroneous data), data conversion (converting data into a unified format), and data aggregation (aggregating information from different hardware). The integrated data is stored in the mac instance data table for subsequent resource management and monitoring.
[0093] After the information is imported and integrated, verification and testing are performed to ensure the accuracy and completeness of the data, including comparing the actual configuration of the hardware with the records in the database, and testing whether the management platform can correctly use this information to manage the hardware. Update the user interface of the management platform to reflect the newly imported hardware information so that administrators can view and manage these hardware resources.
[0094] In this embodiment, the newly imported physical information can be used to monitor the hardware status and generate relevant reports to track the usage and performance of the hardware, thereby significantly improving management efficiency, reducing human errors, and ensuring that hardware resources are effectively managed and utilized.
[0095] In an exemplary embodiment, when the import is completed, the corresponding macOS cloud computer is queried from the macinstance data table through a preset query method; wherein the preset query method includes a macOS instance list query and a single macOS instance.
[0096] Specifically, the query method of macOS instance list query (List Query) is used to obtain an overview or list of all macOS cloud computers so that administrators can quickly understand the overall situation of all macOS instances. The query results can include basic information of all macOS instances, such as serial number, number of CPUs, memory capacity, disk capacity, current status (such as running, shut down, maintenance), assigned users, etc. It is suitable for quickly obtaining the status of the entire macOS cloud computer resource pool for resource allocation, monitoring or reporting. It is usually implemented through an API endpoint or query function in the management interface. Administrators can execute a query command, such as GET / api / mac_instances, to obtain a list of all macOS instances.
[0097] Single macOS Instance Query: This query method is used to obtain detailed information about a specific macOS cloud computer for more specific management and operation. The query results can include all the details of a specific instance, such as serial number, CPU model and quantity, memory size, disk size, network configuration, current status, assigned user, last startup time, etc. It is suitable for use when detailed monitoring, troubleshooting, or configuration modification of a specific macOS instance is required. It is usually queried by specifying the unique identifier of the instance (such as UUID or serial number). Administrators can execute a query command such as GET / api / mac_instances / {uuid} to obtain detailed information about a specific macOS instance.
[0098] To improve query efficiency, the data in the mac instance data table should be properly indexed to ensure that query operations can be executed quickly. Query operations should implement appropriate security measures, such as authentication and authorization, to ensure that only authorized users can access sensitive information. For frequently queried data, consider using a caching mechanism to reduce database load and improve response speed. For large-scale data queries, consider using an asynchronous processing mechanism to avoid blocking the main thread and improve the overall performance of the system.
[0099] In this embodiment, through these two preset query methods, administrators can effectively manage and monitor macOS cloud computer resources to ensure efficient use of resources and stable operation of the system.
[0100] In an exemplary embodiment, as shown in FIG4 , the macOS cloud computer recorded in the mac instance data table is managed for exclusive user allocation, including:
[0101] Step S402, receiving user information and network interface information sent by the cloud computing management platform OpenStack, and storing them in the mac instance data table;
[0102] Step S404, determining the corresponding macOS cloud computer and configuring the network interface according to the user information and the network interface information, and connecting the macOS cloud computer to the network;
[0103] Step S406, perform exclusive user allocation management on the macOS cloud computers recorded in the mac instance data table, generate user allocation information and store it in the mac instance data table.
[0104] Specifically, the cloud computing management platform OpenStack serves as the central platform for managing macOS cloud computers. OpenStack is responsible for receiving user requests and related configuration information.
[0105] Among them, user information includes the user's identity, permissions, organization, etc., which are used to identify and verify the user. Network interface information includes network resources allocated to the user, such as virtual networks, subnets, IP addresses, etc., which are used to ensure that macOS cloud computers can connect to the network.
[0106] Then, store the received user information and network interface information in the mac instance data table to track and manage the allocation status and network configuration of each macOS cloud computer. According to the user information and network interface information, find and determine the corresponding macOS cloud computer instance from the mac instance data table. Configure the network interface, including assigning IP addresses, setting network masks, configuring gateways and DNS, etc., to ensure that the macOS cloud computer can successfully connect to the Internet. Enable the network interface so that the macOS cloud computer can access the internal network and the Internet. Monitor the network connection status to ensure normal network communication.
[0107] Create a record in the mac instance data table to indicate that a specific macOS cloud computer instance has been assigned to a specific user. Store user assignment information in the mac instance data table for easy tracking and management. As user usage changes, such as when a user ends a session or releases resources, the assignment information in the mac instance data table needs to be updated. Ensure the accuracy and timeliness of assignment information for effective resource management and scheduling. Ensure that only authorized users can access and manage their macOS cloud computer instances. Implement security measures such as access control lists (ACLs) and network isolation to protect user data and system security.
[0108] In this embodiment, through these steps, the cloud computing management platform OpenStack can efficiently manage macOS cloud computer resources to ensure that each user can obtain a stable and secure cloud computing environment. This user-exclusive allocation management method improves resource utilization and enhances user experience.
[0109] In an exemplary embodiment, receiving a cloud computer de-allocation request sent by a cloud computing management platform OpenStack;
[0110] In response to the cloud computer unassignment request, the corresponding macOS cloud computer is disconnected from the network and the user assignment information recorded in the macinstance data table is deleted.
[0111] Specifically, when a user finishes using a macOS cloud computer, or an administrator needs to reclaim resources, a de-allocation request is sent to OpenStack. This request may be initiated through the OpenStack API, management console, or other management tools. After OpenStack receives the de-allocation request, it triggers a series of operations to process the request, including disconnecting the network connection, releasing resources, and updating database records.
[0112] To ensure that users can no longer access the macOS cloud computers assigned to them, they need to disconnect from the network, including deleting or releasing the IP address assigned to the instance, shutting down the network interface, and other operations. After disconnecting from the network, the macOS cloud computer will not be able to access the internal network and the Internet until it is reallocated and connected to the network. In the mac instance data table, the allocation status of each macOS cloud computer is recorded, including which user it is assigned to. When the allocation is canceled, the user allocation information needs to be deleted or updated from the data table to reflect the current resource status. This ensures that the information in the data table is up-to-date and can be used for future resource allocation and management. After de-allocation, the status of the macOS cloud computer will be updated to "Unassigned" or "Available", so that it can be used by other users or tasks, ensuring that resources can be used efficiently.
[0113] After disconnecting from the network and deleting the allocation information, you need to ensure the security of user data, and you can clean up or back up the data. At the same time, you need to ensure that the cancellation of the allocation does not affect the stability and security of other users and services.
[0114] In this embodiment, through this process, OpenStack can effectively manage and recycle macOS cloud computer resources to ensure reasonable allocation and efficient use of resources. At the same time, this also improves the flexibility and responsiveness of the cloud computing environment to meet the ever-changing needs of users.
[0115] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0116] Based on the same inventive concept, the embodiment of the present application also provides a macOS cloud computer management device for implementing the above-mentioned macOS cloud computer management method. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above-mentioned method, so the specific limitations in the embodiments of one or more macOS cloud computer management devices provided below can refer to the limitations of the macOS cloud computer management method above, and will not be repeated here.
[0117] In an exemplary embodiment, as shown in FIG5 , a management device for a macOS cloud computer is provided, including: the device includes a Nova component 502, and a mac instance data table is added to the Nova component 502; wherein the macinstance data table is used to indicate that the macOS cloud computer runs as a macOS instance;
[0118] The device also includes:
[0119] The information acquisition module 504 is used to acquire the physical information of the batch of mac supporting hardware and import it into the macinstance data table;
[0120] The allocation module 506 is used to manage the exclusive allocation of the macOS cloud computer recorded in the mac instance data table to the user when the import is completed;
[0121] Management module 508, used to perform remote power management of batches of mac supporting hardware using a power distribution unit PDU;
[0122] The management module 508 is also used to add a data disk to the macOS cloud computer through the network port, and use the distributed storage system Ceph to implement data disk management of the mac supporting hardware;
[0123] The management module 508 is also used to utilize the system backup tool to perform system backup and restore management on the macOS cloud computer.
[0124] In one of the embodiments, the physical information of the mac supporting hardware includes the CPU quantity, memory capacity, serial number, disk capacity, switch port and mac address of the mac supporting hardware.
[0125] In one of the embodiments, the information acquisition module 504 is also used to obtain a request to import physical information of a batch of mac supporting hardware; in response to the physical information import request, a connection is established with the batch of mac supporting hardware to obtain the physical information of the mac supporting hardware, and data integration of the physical information of the batch of mac supporting hardware.
[0126] In one of the embodiments, the query module is used to query the corresponding macOS cloud computer from the mac instance data table through a preset query method when the import is completed; wherein the preset query method includes macOS instance list query and a single macOS instance.
[0127] In one of the embodiments, the allocation module is specifically used to receive user information and network interface information sent by the cloud computing management platform OpenStack, and store them in the mac instance data table; determine the corresponding macOS cloud computer and configure the network interface based on the user information and network interface information, and connect the macOS cloud computer to the Internet; perform user exclusive allocation management on the macOS cloud computer recorded in the mac instance data table, generate user allocation information and store it in the mac instance data table.
[0128] In one of the embodiments, the allocation module is also used to receive a cloud computer cancellation allocation request sent by the cloud computing management platform OpenStack; in response to the cloud computer cancellation allocation request, the corresponding macOS cloud computer is disconnected from the network and the user allocation information recorded in the mac instance data table is deleted.
[0129] Each module in the management device of the above-mentioned macOS cloud computer can be implemented in whole or in part by software, hardware and their combination. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0130] The most detailed embodiment of this application is:
[0131] As shown in Figure 6, a simplified structural diagram of the management device of macOS cloud computers is shown, including the user end, management end, OS end, and multiple supporting hardware (such as mac mini physical machine) as basic equipment, among which:
[0132] The OS side uses the server to manage, store, allocate and control the supporting hardware. This solution directly manages the supporting hardware in a centralized manner without involving virtualization technology. The management side distinguishes macOS instances from traditional virtual machines through UUID, avoiding modifying the UUID to reduce the impact on OpenStack.
[0133] Key operation process:
[0134] 1. Import and delete supporting hardware:
[0135] Import: The Nova component adds the mac_instance resource to batch import the physical information of the supporting hardware, including the number of CPUs, memory, serial number, etc.
[0136] Delete: Delete the physical information of the supporting hardware according to the serial number.
[0137] 2. Allocation and de-allocation of supporting hardware:
[0138] Assignment: Assign macOS cloud computers to users, configure network interfaces to connect to the Internet, and use them exclusively for the users.
[0139] Unassign: Clear user information and delete the network port corresponding to the macOS cloud computer to cancel the centralized management of supporting hardware.
[0140] 3. Query of supporting hardware:
[0141] List query: Get all macOS instances.
[0142] Single instance query: The query method is the same as traditional VM query.
[0143] 4. Remote power management of supporting hardware:
[0144] Since Mac mini does not support IPMI and WOL, use smart PDU to achieve remote power management.
[0145] 5. Data disk management:
[0146] Increase flexibility by adding data disks to macOS cloud computers through network ports and the Ceph distributed storage system.
[0147] 6. System Restore:
[0148] Use Time Machine and Ceph to back up and restore the system, and support mirroring effects.
[0149] In an exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be shown in FIG7. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store physical information of mac supporting hardware. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for managing a macOS cloud computer is implemented.
[0150] Those skilled in the art will understand that the structure shown in FIG. 7 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0151] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0152] Add the mac instance data table in the Nova component. The mac instance data table is used to indicate that the macOS cloud computer runs as a macOS instance.
[0153] Obtain physical information of batches of Mac supporting hardware and import it into the Mac instance data table;
[0154] When the import is complete, the macOS cloud computers recorded in the mac instance data table are managed for exclusive user allocation;
[0155] Use power distribution units (PDUs) to remotely manage power for batches of Mac hardware.
[0156] Add data disks to macOS cloud computers through network ports, and use the distributed storage system Ceph to manage data disks of Mac supporting hardware;
[0157] Use system backup tools to perform system backup and restore management on macOS cloud computers.
[0158] In one embodiment, the physical information of the mac supporting hardware includes the CPU quantity, memory capacity, serial number, disk capacity, switch port and mac address of the mac supporting hardware.
[0159] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0160] Obtain physical information import requests for batches of Mac supporting hardware;
[0161] In response to the physical information import request, a connection is established with the batch of mac supporting hardware to obtain the physical information of the mac supporting hardware, and the physical information of the batch of mac supporting hardware is integrated.
[0162] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0163] When the import is complete, the corresponding macOS cloud computer is queried from the mac instance data table using the preset query method; the preset query methods include macOS instance list query and single macOS instance.
[0164] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0165] Receive user information and network interface information sent by the cloud computing management platform OpenStack, and store them in the macinstance data table;
[0166] According to user information and network interface information, determine the corresponding macOS cloud computer and configure the network interface to connect the macOS cloud computer to the Internet;
[0167] Perform exclusive user allocation management on the macOS cloud computers recorded in the mac instance data table, generate user allocation information and store it in the mac instance data table.
[0168] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0169] Receive a cloud computer de-allocation request sent by the cloud computing management platform OpenStack;
[0170] In response to the cloud computer unassignment request, the corresponding macOS cloud computer is disconnected from the network and the user assignment information recorded in the macinstance data table is deleted.
[0171] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0172] Add the mac instance data table in the Nova component. The mac instance data table is used to indicate that the macOS cloud computer runs as a macOS instance.
[0173] Obtain physical information of batches of Mac supporting hardware and import it into the Mac instance data table;
[0174] When the import is complete, the macOS cloud computers recorded in the mac instance data table are managed for exclusive user allocation;
[0175] Use power distribution units (PDUs) to remotely manage power for batches of Mac hardware.
[0176] Add data disks to macOS cloud computers through network ports, and use the distributed storage system Ceph to manage data disks of Mac supporting hardware;
[0177] Use system backup tools to perform system backup and restore management on macOS cloud computers.
[0178] In one embodiment, the physical information of the mac supporting hardware includes the CPU quantity, memory capacity, serial number, disk capacity, switch port and mac address of the mac supporting hardware.
[0179] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0180] Obtain physical information import requests for batches of Mac supporting hardware;
[0181] In response to the physical information import request, a connection is established with the batch of mac supporting hardware to obtain the physical information of the mac supporting hardware, and the physical information of the batch of mac supporting hardware is integrated.
[0182] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0183] When the import is complete, the corresponding macOS cloud computer is queried from the mac instance data table using the preset query method; the preset query methods include macOS instance list query and single macOS instance.
[0184] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0185] Receive user information and network interface information sent by the cloud computing management platform OpenStack, and store them in the macinstance data table;
[0186] According to user information and network interface information, determine the corresponding macOS cloud computer and configure the network interface to connect the macOS cloud computer to the Internet;
[0187] Perform exclusive user allocation management on the macOS cloud computers recorded in the mac instance data table, generate user allocation information and store it in the mac instance data table.
[0188] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0189] Receive a cloud computer de-allocation request sent by the cloud computing management platform OpenStack;
[0190] In response to the cloud computer unassignment request, the corresponding macOS cloud computer is disconnected from the network and the user assignment information recorded in the macinstance data table is deleted.
[0191] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0192] Add the mac instance data table in the Nova component. The mac instance data table is used to indicate that the macOS cloud computer runs as a macOS instance.
[0193] Obtain physical information of batches of Mac supporting hardware and import it into the Mac instance data table;
[0194] When the import is complete, the macOS cloud computers recorded in the mac instance data table are managed for exclusive user allocation;
[0195] Use power distribution units (PDUs) to remotely manage power for batches of Mac hardware.
[0196] Add data disks to macOS cloud computers through network ports, and use the distributed storage system Ceph to manage data disks of Mac supporting hardware;
[0197] Use system backup tools to perform system backup and restore management on macOS cloud computers.
[0198] In one embodiment, the physical information of the mac supporting hardware includes the CPU quantity, memory capacity, serial number, disk capacity, switch port and mac address of the mac supporting hardware.
[0199] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0200] Obtain physical information import requests for batches of Mac supporting hardware;
[0201] In response to the physical information import request, a connection is established with the batch of mac supporting hardware to obtain the physical information of the mac supporting hardware, and the physical information of the batch of mac supporting hardware is integrated.
[0202] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0203] When the import is complete, the corresponding macOS cloud computer is queried from the mac instance data table using the preset query method; the preset query methods include macOS instance list query and single macOS instance.
[0204] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0205] Receive user information and network interface information sent by the cloud computing management platform OpenStack, and store them in the macinstance data table;
[0206] According to user information and network interface information, determine the corresponding macOS cloud computer and configure the network interface to connect the macOS cloud computer to the Internet;
[0207] Perform exclusive user allocation management on the macOS cloud computers recorded in the mac instance data table, generate user allocation information and store it in the mac instance data table.
[0208] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0209] Receive a cloud computer de-allocation request sent by the cloud computing management platform OpenStack;
[0210] In response to the cloud computer unassignment request, the corresponding macOS cloud computer is disconnected from the network and the user assignment information recorded in the macinstance data table is deleted.
[0211] 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, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0212] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0213] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0214] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for managing a macOS cloud computer, characterized in that: The Nova component applied to the cloud computing management platform OpenStack, the method includes: Add a mac instance data table in the Nova component; wherein the mac instance data table is used to indicate that the macOS cloud computer runs as a macOS instance; Obtain physical information of batches of mac supporting hardware and import it into the mac instance data table; When the import is completed, the macOS cloud computer recorded in the mac instance data table is managed for exclusive user allocation; Use power distribution units (PDUs) to remotely manage power for batches of Mac hardware. Add data disks to macOS cloud computers through network ports, and use the distributed storage system Ceph to manage data disks of Mac supporting hardware; Use system backup tools to perform system backup and restore management on macOS cloud computers.
2. The method according to claim 1, characterized in that The physical information of the mac supporting hardware includes the CPU quantity, memory capacity, serial number, disk capacity, switch port and mac address of the mac supporting hardware.
3. The method according to claim 1, characterized in that The physical information of the batch of Mac supporting hardware is obtained, including: Obtain physical information import requests for batches of Mac supporting hardware; In response to the physical information import request, a connection is established with the batch of mac supporting hardware to obtain the physical information of the mac supporting hardware, and the physical information of the batch of mac supporting hardware is integrated.
4. The method according to claim 1, characterized in that: The method further comprises: When the import is completed, the corresponding macOS cloud computer is queried from the mac instance data table through a preset query method; wherein the preset query method includes a macOS instance list query and a single macOS instance.
5. The method according to claim 1, characterized in that The exclusive allocation management of the macOS cloud computer recorded in the mac instance data table includes: Receive user information and network interface information sent by the cloud computing management platform OpenStack, and store them in the macinstance data table; According to the user information and the network interface information, determine the corresponding macOS cloud computer and configure the network interface to connect the macOS cloud computer to the network; The macOS cloud computers recorded in the mac instance data table are managed for exclusive user allocation, and user allocation information is generated and stored in the mac instance data table.
6. The method according to claim 5, characterized in that The method further comprises: Receiving a cloud computer de-allocation request sent by the cloud computing management platform OpenStack; In response to the cloud computer unassignment request, the corresponding macOS cloud computer is disconnected from the network and the user assignment information recorded in the macinstance data table is deleted.
7. A management device for a macOS cloud computer, characterized in that: The device includes a Nova component, and a mac instance data table is added to the Nova component; wherein the mac instance data table is used to indicate that the macOS cloud computer runs as a macOS instance; The device also includes: An information acquisition module, used to acquire physical information of batches of mac supporting hardware and import it into the mac instance data table; An allocation module, used for performing exclusive user allocation management on the macOS cloud computers recorded in the mac instance data table when the import is completed; Management module, used to use power distribution unit PDU to remotely manage the power supply of batches of Mac supporting hardware; The management module is also used to add data disks to macOS cloud computers through network ports, and use the distributed storage system Ceph to manage data disks of Mac supporting hardware; The management module is also used to use the system backup tool to perform system backup and restore management on macOS cloud computers.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.