Task resource sharing method, device and system, storage medium and equipment
By coordinating the collaborative work between the client and the resource coordination server, the problem of poor coordination of resource sharing in the existing technology is solved, and flexible resource sharing across devices and cross-platforms is realized, resource utilization efficiency and coordination security are improved.
Patent Information
- Application Number
- CN202510588391.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-08
- Publication Date
- 2025-06-06
AI Technical Summary
The existing resource sharing coordination technology has poor effectiveness in cross-device and cross-platform resource sharing, resulting in idle resources generated by devices and applications during operation, and some coordination tasks cannot be efficiently executed due to insufficient resources.
Through the coordination client, the resource provider uploads idle resource information and rental conditions, the resource demander sends resource requests, the resource coordination server verifies the request information and sends it to the resource provider's coordination client, so that it can perform target tasks based on the request information. The method includes generating a license chain, analyzing the rental conditions, verifying the request information, synchronizing the resource coordination settlement information, and adjusting the allocation resource request through preset matching rules.
It realizes flexible resource sharing between resource demanders and providers, ensures the security and efficiency of resource coordination, and reduces the system coordination burden through lightweight resource containers based on wasm, and improves resource utilization efficiency.
Smart Images

Figure CN120104349A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a method and system for sharing task resources. Background Art
[0002] In the digital age, with the rapid development of cloud computing, big data and Internet of Things technologies, the demand for resource sharing is growing. How to manage and coordinate these resources efficiently and securely has become an urgent problem to be solved.
[0003] At present, existing resource sharing coordination usually only shares the computing power (computing ability) resources of each device or application to be coordinated. However, coordination based only on computing power calculation will cause a large number of devices and applications to generate idle resources during operation. In addition, some coordination tasks cannot be executed efficiently due to insufficient resources, and cannot meet the flexible coordination of shared resources across devices and platforms, resulting in poor effectiveness of task resource sharing coordination. Summary of the invention
[0004] In view of this, the present application provides a method, apparatus, system, storage medium and device for sharing task resources, the main purpose of which is to solve the problem of poor effectiveness of existing task resource sharing and coordination.
[0005] According to one aspect of the present application, a method for sharing task resources is provided, comprising: Obtain idle resource information and rental conditions uploaded by the resource provider through the corresponding coordination client, and register and publish the idle resource information; In response to a resource request sent by a resource demander through a corresponding coordination client, verifying the request information carried in the resource request through the lease condition; When the request information is verified, the request information is sent to the coordination client corresponding to the resource provider, so that the resource provider requests the resource container corresponding to the resource provider to execute the target task according to the request information. The resource container is a resource environment built based on the virtual instruction set architecture.
[0006] Further, the request information includes target coordination time, resource budget information, and requested resource amount, and the verifying the request information carried in the resource request by using the lease condition includes: Analyze the time conditions, resource quantity conditions and transaction conditions in the rental conditions; Verifying the target coordination time, the resource budget information, and the requested resource quantity according to the time condition, the resource quantity condition, and the transaction condition; After sending the request information to the coordination client corresponding to the resource demander, the method further includes: When the coordination client corresponding to the resource demander requests the resource container to perform the target task according to the coordination information, the resource container completes resource settlement and resource release, and synchronizes the generated resource coordination settlement information to the coordination clients corresponding to the resource demander and the resource provider respectively.
[0007] Furthermore, the method further comprises: Generate at least one permission chain, and configure permission conditions for the permission chain, wherein the permission conditions are used to represent the restriction content of classified authorization for different resource providers and different resource demanders; When the resource provider and the resource demander complete the authorization verification based on the licensing conditions through the corresponding coordination client, the resource provider and the resource demander are configured in the licensing chain, and autonomous transactions are performed between the resource provider and the resource demander in the licensing chain.
[0008] Further, after verifying the request information carried in the resource request by using the lease condition, the method further includes: When the request information of a single resource demander fails to pass the verification of the single rental condition, obtaining the request information of at least two resource demanders; When the sum of the leasing conditions of at least one of the resource providers satisfies the request information obtained after the expected matching and adjustment of the resource demander, the request information of the at least two resource demanders is adjusted and allocated according to the preset matching rules to obtain the matched request information, so as to request the resource container corresponding to the resource provider to execute the target task based on the matched request information.
[0009] Further, the verifying the request information carried in the resource request by using the lease condition includes: Obtain the lease conditions of at least two resource providers; When the request information of a single resource demander passes the verification of at least two of the rental conditions, the idle resource information of at least two of the resource providers is adjusted and allocated according to the preset matching rules to obtain the matched request information, so as to request the resource container corresponding to the resource provider to execute the target task based on the matched request information; or, When the sum of the request information of at least two resource demanders passes the verification of at least two of the leasing conditions, the idle resource information of at least two resource providers is adjusted and allocated according to the preset matching rules to obtain the matched request information, so as to request the resource container corresponding to the resource provider to execute the target task based on the matched request information.
[0010] Furthermore, the preset matching rules include any one of aggregation matching rules, auction matching rules and priority matching rules, so that the resource leasing conditions of a single resource provider can satisfy the resource requests of at least two resource demanders through the preset matching rules; or, the resource leasing conditions of at least two resource providers can satisfy the resource requests of a single resource demander through the preset matching rules; or, the resource leasing conditions of at least two resource providers can satisfy the resource requests of at least two resource demanders through the preset matching rules.
[0011] According to one aspect of the present application, another task resource sharing method is provided, comprising: When the operator is determined to be a resource provider, the idle resource information and the lease conditions are sent to the resource coordination server, so that the resource coordination server registers and publishes the idle resource information and then coordinates the task resources; When the operator is determined to be a resource demander, a resource request is sent to the resource coordination server, so that the resource coordination server verifies the request information carried in the resource request according to the lease condition; When the operator is determined to be a resource provider and receives the request information sent by the resource coordination server after verifying the request information, the resource container corresponding to the resource provider is requested to execute the target task according to the request information. The resource container is a resource environment built based on the virtual instruction set architecture.
[0012] Furthermore, the method further comprises: Acquire at least one permission chain that has been configured by the resource coordination server, wherein the permission chain includes multiple resource providers and multiple resource demanders, the permission conditions are used to characterize the restriction content of classified authorization for different resource providers and different resource demanders, and autonomous transactions are performed between resource providers and resource demanders in the permission chain; When the resource demander and the resource provider are on the same permission chain and the idle resource information provided by the resource provider is unknown, a resource provider matching the request conditions of the resource demander is determined from the permission chain to trigger the resource provider to perform an autonomous transaction with the resource demander.
[0013] According to one aspect of the present application, a task resource sharing system is provided, comprising: a resource coordination server, a coordination client, The coordination client is used by resource providers to upload idle resource information and rental conditions; The coordination client is also used by the resource demander to send a resource request carrying request information; The resource coordination server is used to register and publish the idle resource information, and after receiving the resource request, verify the request information through the rental conditions, and after verification, send the request information to the coordination client corresponding to the resource provider, so that the resource provider requests the resource container corresponding to the resource provider to execute the target task through the request information, and the source container is a resource environment built based on the virtual instruction set architecture.
[0014] According to another aspect of the present application, a task resource sharing device is provided, comprising: An acquisition module is used to acquire idle resource information and rental conditions uploaded by a resource provider through a corresponding coordination client, and to register and publish the idle resource information; A verification module, configured to respond to a resource request sent by a resource demander through a corresponding coordination client, and verify the request information carried in the resource request through the rental condition; A generation module is used to send the request information to the coordination client corresponding to the resource provider after the request information is verified, so that the resource provider requests the resource container corresponding to the resource provider to execute the target task according to the request information, and the source container is a resource environment built based on the virtual instruction set architecture.
[0015] According to one aspect of the present application, another task resource sharing device is provided, comprising: A first sending module is used to send idle resource information and lease conditions to the resource coordination server when the operator is determined to be a resource provider, so that the resource coordination server registers and publishes the idle resource information and then performs task resource coordination; A second sending module is used to send a resource request to the resource coordination server when the operator is determined to be a resource demander, so that the resource coordination server verifies the request information carried in the resource request according to the lease condition; A receiving module is used to request the resource container corresponding to the resource provider to execute the target task according to the request information when the operator is determined to be the resource provider and receives the request information sent by the resource coordination server after verification. The resource container is a resource environment built based on the virtual instruction set architecture.
[0016] According to one aspect of the present application, a storage medium is provided, in which at least one executable instruction is stored, and the executable instruction enables a processor to execute operations corresponding to the above-mentioned task resource sharing method.
[0017] According to one aspect of the present application, a terminal is provided, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other through the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute operations corresponding to the above-mentioned task resource sharing method.
[0018] According to one aspect of the present application, another storage medium is provided, in which at least one executable instruction is stored, and the executable instruction enables a processor to execute operations corresponding to the above-mentioned task resource sharing method.
[0019] According to one aspect of the present application, another terminal is provided, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other through the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute operations corresponding to the above-mentioned task resource sharing method.
[0020] By means of the above technical solution, the technical solution provided by the embodiment of the present application has at least the following advantages: The present application provides a method, apparatus, system, storage medium and device for sharing task resources. Compared with the prior art, the embodiment of the present application uses a coordination client to enable a resource provider to upload idle resource information and rental conditions; the coordination client is also used for a resource demander to send a resource request carrying request information; a resource coordination server is used to register and publish the idle resource information, and after receiving the resource request, verify the request information through the rental conditions, and after verification, send the request information to the coordination client corresponding to the resource provider, so that the resource provider requests the resource container corresponding to the resource provider to execute the target task through the request information. The resource container is a resource environment built based on a virtual instruction set architecture. The service end uniformly verifies the demander and the provider, realizes flexible sharing of idle resources between the demander and the provider, ensures the security and efficiency of resource coordination between the two parties, and the lightweight resource container built based on wasm greatly reduces the system coordination burden, thereby improving the efficiency of resource utilization.
[0021] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings: Figure 1 A flow chart of a task resource sharing method provided in an embodiment of the present application is shown; Figure 2 A schematic diagram of a process of interaction and coordination between a resource demander and a resource provider provided in an embodiment of the present application is shown; Figure 3 A schematic diagram of a process of idle resource transaction provided by an embodiment of the present application is shown; Figure 4 A flow chart of another task resource sharing method provided in an embodiment of the present application is shown; Figure 5 A block diagram of a task resource sharing device provided in an embodiment of the present application is shown; Figure 6 A block diagram showing another task resource sharing device provided in an embodiment of the present application is shown; Figure 7 A schematic diagram of the structure of a task resource sharing system provided in an embodiment of the present application is shown; Figure 8 A schematic diagram of the structure of a terminal provided in an embodiment of the present application is shown; Fig. 9 A schematic diagram of the structure of another terminal provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0023] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0024] The present application embodiment provides a method for sharing task resources, such as Figure 1 As shown, the method includes: 101. Obtain idle resource information and rental conditions uploaded by a resource provider through a corresponding coordination client, and register and publish the idle resource information.
[0025] In the embodiment of the present application, the current execution subject, as the execution end for coordinating task resources, can be a resource coordination server, so as to achieve the purpose of resource sharing between the resource provider and the resource demander through the instruction interaction with the coordination client. Among them, the resource provider is the party that provides resource data, and the resource demander is the party that requires resource data, and they interact with the resource coordination server of the current execution end after logging in through the coordination client. Specifically, after determining that there are idle resources, the resource provider uploads the idle resource information to the current execution end through the coordination client, and uploads the rental conditions at the same time. At this time, the rental conditions are used to characterize the use conditions set by the resource provider for the idle resources, including but not limited to time conditions, payment conditions, etc., which are not specifically limited in the embodiment of the present application. After the current execution end obtains the idle resource information and rental conditions, it registers and publishes them so that the resource demander can view them.
[0026] It should be noted that the resources in the embodiments of the present application are used to characterize the data processing resources of the computer device, including but not limited to CPU, memory, computing power, bandwidth data, etc., which are not specifically limited in the embodiments of the present application. Correspondingly, the idle resource information uploaded by the resource provider is the resource information that can be shared with the resource demander for use, including but not limited to the specific computing power size, memory location, etc., which are not specifically limited in the embodiments of the present application.
[0027] 102. In response to a resource request sent by a resource demander through a corresponding coordination client, verify the request information carried in the resource request through the rental condition.
[0028] In the embodiment of the present application, after the current execution end registers and publishes all idle resource information uploaded by different resource providers, the resource demander logs in to the coordination client to view all the idle resource information published above to select resource data suitable for itself. After selection, a resource request is sent through the coordination client. At this time, after the current execution end receives the resource request, it verifies the request information carried in the resource request based on the rental conditions, that is, determines whether the request information meets the rental conditions. Among them, the request information is used to represent the information and budget information requested by the resource demander to coordinate the use of resources. For example, the request information is to use memory a from 12 o'clock to 1 o'clock, and the budget is x yuan. This embodiment of the present application does not make specific limitations.
[0029] It should be noted that when the current execution end verifies the request information and the lease conditions, it can compare the content in the request information with the lease conditions corresponding to the registered and published idle resource information one by one to determine whether the request information meets the lease conditions. This embodiment of the application does not make specific limitations.
[0030] 103. When the request information passes verification, the request information is sent to the coordination client corresponding to the resource provider.
[0031] In an embodiment of the present application, after verifying that the request information meets any of the rental conditions, the current execution end sends the request information to the coordination client corresponding to the resource provider, so that the resource provider requests the resource container corresponding to the resource provider to execute the target task according to the request information. Among them, the resource container is a resource environment built based on the virtual instruction set architecture, preferably a sandbox environment built based on the virtual instruction set architecture WebAssembly (WASM for short), and the coordination client is configured as a corresponding resource container based on WASM to achieve lightweight encapsulation and second-speed deployment of shared resources. Users of different identities can act as resource providers or resource demanders after logging in to the coordination client. When acting as a resource provider, the idle resources provided in the idle resource information are the idle resource contents in the resource container. When the resource provider receives the request information, it can request the corresponding resource container to provide the resource demander with sharable resources, so that the resource container executes the target task of the resource demander. The target task is the task content that the resource demander performs using idle resources, which is not specifically limited in the embodiment of the present application.
[0032] It should be noted that WASM is a technology that allows compiled binary code to run in a web browser. It can compile programs written in languages such as C / C++ into an efficient intermediate representation, thereby achieving performance close to that of native applications in the browser. The code running in the resource container built by WASM is isolated from the host environment (such as a browser or server), which not only improves the security of the application, but also prevents the injection and attack of malicious code, and ensures the confidentiality of resource use, so that sensitive data is effectively protected during processing and transmission.
[0033] In another embodiment of the present application, for further definition and explanation, the step of verifying the request information carried in the resource request by the lease condition includes: Analyze the time conditions, resource quantity conditions and transaction conditions in the rental conditions; The target coordination time, the resource budget information and the requested resource quantity are verified according to the time condition, the resource quantity condition and the transaction condition.
[0034] In order to achieve matching of idle resources and requested coordination contents corresponding to different resource providers and resource demanders based on the resource coordination server, improve the flexibility of resource coordination, and ensure the security of resource sharing data, the resource coordination server as the current execution subject, when verifying, specifically, first parses the time condition, resource quantity condition and transaction condition in the lease condition. Among them, the time condition is the time that the resource provider can provide the resource demander with the use of idle resources, the resource quantity condition is the number or size of idle resources that the resource provider can provide to the resource demander, and the transaction condition is used to characterize the conditions for the resource demander to trade when the resource provider provides idle resources, including but not limited to digital currency, virtual services, rights and interests information, etc., which are not specifically limited in the embodiments of this application. At this time, the request information of the resource demander requesting to coordinate resources may include target coordination time, resource budget information and requested resource quantity, the target coordination time is the time when the resource demander needs to coordinate resources to perform the target task, the resource budget information is the price that the resource demander expects to provide after requesting to coordinate idle resources to perform the target task, including but not limited to digital currency, virtual services, rights and interests information, etc., and the requested resource quantity is the size or quantity after the resource demander requests to coordinate the use of idle resources to perform the target task, which is not specifically limited in the embodiments of this application. Furthermore, after the current execution end parses the above content, it matches the target coordination time, resource budget information and requested resource quantity one by one according to the time condition, resource quantity condition and transaction condition to complete the verification purpose between the request information and the lease condition.
[0035] Correspondingly, in some embodiments, after the step of sending the request information to the coordination client corresponding to the resource demander, the method further includes: When the coordination client corresponding to the resource demander requests the resource container to perform the target task according to the coordination information, the resource container completes resource settlement and resource release, and synchronizes the generated resource coordination settlement information to the coordination clients corresponding to the resource demander and the resource provider respectively.
[0036] In order to meet the resource sharing needs between resource providers and resource demanders, and to improve the effectiveness and utilization of resource coordination, after the resource provider requests the resource container to provide idle resources to the resource demander to complete the target task, the resource container Wasm is instructed to automatically complete resource settlement and resource release, that is, to release the resources for executing the target task. Among them, resource settlement is the payment content calculated according to the rental conditions or request information. At the same time, in order to ensure the effectiveness of the settlement, the current execution end synchronizes the resource coordination settlement information generated by the resource settlement to the coordination clients corresponding to the resource demander and the resource provider, so that the resource demander can make payment and the resource provider can collect it, thereby completing a complete resource sharing coordination process and ensuring the seamless connection and transparency of the entire transaction process. For example, Figure 2 As shown, the resource demander as the resource demander interacts with the shared resource scheduling system as the resource coordination server through the scheduling client (i.e., the coordination client) to upload the request information that needs to be coordinated. At the same time, the resource holder as the resource provider interacts with the shared resource scheduling system as the resource coordination server through the scheduling client (i.e., the coordination client) to upload the leasing conditions and idle resources so as to perform resource transactions, resource contracts (licenses), and resource matching allocation in the shared resource scheduling system. The embodiments of the present application do not make specific limitations.
[0037] In a specific implementation scenario, such as Figure 3 As shown, the resource holder, as a resource provider, sends idle resource information and rental conditions to the resource coordination server through the coordination client. At this time, the rental conditions include price, available time period and duration, etc. The resource coordination server registers and publishes the idle resource information. After the resource demander logs in to the coordination client, it sends a resource request to the resource coordination server to request to obtain idle resources for coordinated sharing. When the resource coordination server receives the resource request, based on the request information carried in the resource request, including budget, required resource quantity, etc., the resource coordination server verifies according to the request information and the rental conditions, that is, determines whether the request information matches the rental conditions. If the verification is valid, the resource coordination server sends the request information of the resource demander, such as the resource interface address, to the resource provider, so that the resource provider requests the resource container to provide idle resources to the resource demander to perform the target task according to the request information. If the verification request is invalid, that is, the request information does not match the rental conditions, the resource coordination system can also automatically match the appropriate idle resources for the resource demander through matchmaking, etc., or instruct the resource demander to reapply, which is not specifically limited in the embodiment of the present application. In an embodiment of the present application, once the idle resources are used up by the resource demander, the Wasm environment as a resource container can automatically release the resources and settle the fees to ensure the seamless connection and transparency of the entire transaction process.
[0038] For example, Company A registers idle server resources to the resource coordination server through the coordination client, and sets the rental conditions to charge 10 yuan per hour, and the available time period is from 8 pm to 6 am the next day. Xiao Li is an independent developer who needs additional computing resources to run some complex simulations and tests. Xiao Li browses the idle server resources provided by Company A published by the resource coordination server through the coordination client. The rental conditions are that the idle resources are charged 10 yuan per hour, and the available time period is from 8 pm to 6 am the next day. After Xiao Li browses the available resources of Company A using the unified interface, he initiates a resource request to the resource coordination server, including request information such as task type (application testing), budget (500 yuan), and required resource quantity (5 servers for 10 days). After receiving Xiao Li's resource request, the resource coordination server first verifies the validity of the request information and the rental conditions, including judging whether the budget is sufficient and whether the resources of Company A are free within the specified time. If the verification is successful, the resource coordination server sends the request information to Company A. Company A uses the corresponding client or SDK in the WASM environment to provide resource services to Xiao Li according to the time, resource quantity, resource access address and other information in the request information. In the next 10 days, Xiao Li can use these servers to test the application according to the set time period. After Xiao Li completes the test, the Wasm environment automatically releases the resources used, and based on the actual usage time, such as a total of 50 hours, the corresponding fee of 500 yuan is deducted from the prepaid 500 yuan, and the remaining amount is returned to Xiao Li.
[0039] In another embodiment of the present application, for further definition and explanation, the steps further include: generating at least one permission chain and configuring permission conditions for the permission chain; When the resource provider and the resource demander complete the authorization verification based on the permission condition through the corresponding coordination client, the resource provider and the resource demander are configured in the permission chain.
[0040] In order to improve the flexibility of resource sharing coordination and meet the interaction needs between different resource providers and resource demanders, the current execution end as the resource coordination server can generate a permission chain. At this time, autonomous transactions are executed between the resource providers and resource demanders in the permission chain. Specifically, after the current execution end generates a license chain, it configures the license conditions. At this time, the license conditions are used to represent the restriction content of classified authorization for different resource providers and different resource demanders, including but not limited to time restrictions, identity restrictions, resource restrictions, etc. on whether autonomous transactions can be conducted. The current execution end can obtain the identity information, resource information, etc. of the resource demander and the resource provider to perform license verification according to the license conditions. When the identity information or request information, rental conditions, etc. provided by the resource provider and the resource demander meet the license conditions, the resource provider and the resource demander are authorized to conduct autonomous transactions, that is, the current execution end performs a license judgment on the rental conditions provided by the resource provider, the request information provided by the resource demander, and the identity information of both parties according to the license conditions to determine whether to authorize autonomous transactions. If the authority verification of the license conditions is completed, the resource provider and the resource demander are configured in the license chain so that the resource coordination service end authorizes the resource provider and the resource demander recorded in the license chain to conduct autonomous transactions of idle resources. The embodiments of the present application do not make specific limitations. In addition, the current execution end can be configured with multiple license chains, and each license chain records different resource providers and different resource demanders that permit autonomous transactions. That is, when the current execution end determines that the resource demander and the resource provider are on the same license chain, and the idle resource information provided by the resource provider is unknown, it can use polling to determine the resource provider that matches the request conditions of the resource demander from the license chain, so as to trigger the resource provider and the resource demander to execute autonomous transactions. The embodiments of the present application do not make specific limitations.
[0041] It should be noted that the autonomous transaction in the embodiment of the present application is that the resource demander directly sends a request to the resource provider, so that the resource provider provides idle resources to the resource demander through the resource container, without the need for the resource demander to send a resource request to the resource coordination service end and verify it, which greatly improves the coordination efficiency of idle resources. In addition, as a resource coordination service end, the current execution end can generate multiple permission chains, and can set corresponding permission conditions for each permission chain. For example, resource demanders and resource providers belonging to the same network or the same company can be added to a permission chain. At this time, the permission condition is a restriction on the classification of multiple resource demanders and multiple resource providers, so that the resource demanders and resource providers classified by the permission conditions are added to a permission chain, thereby determining a pair of resource demanders and resource providers from each permission chain through polling to perform autonomous transactions, which is not specifically limited in the embodiment of the present application. At the same time, the same resource demander or the same resource provider can be added to multiple permission chains to perform autonomous transactions with different resource demanders or different resource providers under different permission conditions, which is not specifically limited in the embodiment of the present application.
[0042] In some embodiments, after the resource demander and the resource provider conduct autonomous transactions based on the permission chain, they can also evaluate the other party's service process and add the evaluation content as an approval record to the value permission chain to establish a trust scoring mechanism for coordinated resources.
[0043] In a specific implementation scenario, after the resource provider uploads and registers the idle resource information and rental conditions through the resource coordination client, the resource demander can view and browse through the resource coordination client and send a resource request with request information (such as the required resource quantity, budget, and usage time, etc.). At this time, if the resource coordination server verifies the request information and rental conditions, it can generate a permission chain and configure the corresponding permission conditions. The permission condition can be whether they are in the same network. When the resource coordination server determines that the resource demander and the resource provider are in the same network, the resource demander and the resource provider are added to the permission chain so as to instruct the resource demander and the resource provider to perform autonomous transactions through polling.
[0044] In another embodiment of the present application, for further definition and explanation, the method further includes: When the request information of a single resource demander fails to pass the verification of the single rental condition, obtaining the request information of at least two resource demanders; When the sum of the leasing conditions of at least one of the resource providers satisfies the request information obtained after the expected matching and adjustment of the resource demander, the request information of the at least two resource demanders is adjusted and allocated according to the preset matching rules to obtain the matched request information, so as to request the resource container corresponding to the resource provider to execute the target task based on the matched request information.
[0045] In order to achieve the purpose of flexible resource coordination and improve resource coordination efficiency, the resource coordination server as the current execution end can receive resource requests from different resource demanders, as well as idle resource information and leasing conditions from different resource providers. In the process of verifying the request information through leasing conditions, when the request information of any single resource demander fails to pass the verification of any single leasing condition, it means that the idle resources provided by any single resource provider cannot meet the coordination needs of any single resource demander. Therefore, the request information of at least two resource demanders can be obtained for matching verification, otherwise the single resource provider that can match the single resource demander can be directly determined. Specifically, when the sum of the leasing conditions of at least one resource provider satisfies the request information obtained after the expected matching and adjustment by the resource demander, the request information of at least two resource demanders is adjusted and allocated according to the preset matching rules to obtain the matched request information, so as to request the resource container corresponding to the resource provider to execute the target task based on the matched request information. At this time, it is first determined whether the sum of the leasing conditions of at least one resource provider (at this time, a resource provider can provide multiple idle resource information and corresponding multiple leasing conditions) can meet the resource demander's expected request information after matching and adjustment, wherein the expected matching and adjustment request information can be the addition of the resources that multiple resource demanders need to request, for example, the leasing conditions of a resource provider The condition is that free storage space a can be occupied from 2 o'clock to 3 o'clock, and x yuan is paid. Before the matching and adjustment, there are 2 resource demanders who respectively request storage space a / 2 from 2 o'clock to 3 o'clock, and pay x / 2 yuan respectively. This means that the request information provided by a single resource demander cannot directly meet the rental conditions of the resource provider. At this time, the request information of the two resource demanders is matched and adjusted, and the request information is obtained that the storage space a is requested to be occupied from 2 o'clock to 3 o'clock, and x yuan is paid. This makes the request information of the two resource demanders after matching and adjustment meet the rental conditions. Therefore, the request information of at least two resource demanders is adjusted and allocated according to the preset matching rules to obtain the matched request information, so as to request the resource container corresponding to the resource provider to execute the target task based on the matched request information.
[0046] It should be noted that the matching in the embodiment of the present application is used to characterize a method in which multiple resource providers or multiple resource demanders coordinate resources in a collaborative manner when the request information of a single resource demander cannot meet the leasing conditions of a single resource provider. The specific collaboration method can be configured by preset matching rules to request the resources in the resource container to perform the target task according to the matched request information. The embodiment of the present application does not make specific limitations.
[0047] In another embodiment of the present application, for further definition and explanation, the step of verifying the request information carried in the resource request through the rental condition includes: Obtain the lease conditions of at least two resource providers; When the request information of a single resource demander passes the verification of at least two of the rental conditions, the idle resource information of at least two of the resource providers is adjusted and allocated according to the preset matching rules to obtain the matched request information, so as to request the resource container corresponding to the resource provider to execute the target task based on the matched request information; or, When the sum of the request information of at least two resource demanders passes the verification of at least two of the leasing conditions, the idle resource information of at least two resource providers is adjusted and allocated according to the preset matching rules to obtain the matched request information, so as to request the resource container corresponding to the resource provider to execute the target task based on the matched request information.
[0048] In order to achieve the purpose of flexible matching and allocation of resources, thereby improving the effectiveness and accuracy of resource coordination, in a specific implementation scenario, the current execution end first obtains the rental conditions of at least two resource providers in the process of verifying the rental conditions and request information, so as to determine whether the request information of a single resource demander can be met through the sum of the rental conditions of at least two resource providers. The verification of the rental conditions and request information at this time is the same as the aforementioned verification method, which will not be repeated here. When the request information of a single resource demander passes the verification of at least two rental conditions, it means that the request information of a single resource demander needs to be provided by the resource containers of at least two resource providers corresponding to the rental conditions. Therefore, the idle resource information of at least two resource providers is adjusted and allocated according to the preset matching rules to obtain the matched request information, so as to request the resource container corresponding to the resource provider to execute the target task based on the matched request information.
[0049] In order to achieve the purpose of flexible matching and allocation of resources, thereby improving the effectiveness and accuracy of resource coordination, in another specific implementation scenario, the current execution end first obtains the rental conditions of at least two resource providers during the verification of the rental conditions and request information, so as to determine whether the rental conditions provided by at least two resource providers can be met through the sum of the request information of at least two resource demanders, so as to indicate that the matching resources required by at least two resource demanders need to be matched and provided by at least two resource providers. At this time, the verification of the rental conditions and request information is the same as the aforementioned verification method, which will not be repeated here. When the sum of the request information of at least two resource demanders passes the verification of at least two of the rental conditions, it means that the resources required to be coordinated by at least two resource demanders need to be provided by the resource containers of at least two resource providers. Therefore, the idle resource information of at least two resource providers is adjusted and allocated according to the preset matching rules to obtain the matched request information, so as to request the resource container corresponding to the resource provider to execute the target task based on the matched request information.
[0050] In another embodiment of the present application, in order to further limit and illustrate, the flexible resource coordination needs of different resource demanders and different resource providers are met through matching and adjustment, and the preset matching rules in the step include any one of the aggregation matching rules, auction matching rules and priority matching rules.
[0051] Among them, the aggregation matching rule is used to represent the integration of the request information of multiple resource demanders into the sum of the request information, and the verification with the rental conditions of a single resource provider for unified allocation, so as to achieve the purpose of making the resource rental conditions of a single resource provider meet the resource request of at least two resource demanders through this preset matching rule. The auction matching rule is used to represent the provision of multiple resource providers to resource demanders through bidding to make a combined resource quotation, so that the resource provider with a low quotation is used as an idle resource provider, so that the resource rental conditions of at least two resource providers meet the resource request of a single resource demander through this preset matching rule. The priority matching rule is used to represent the method of selecting at least two resource providers according to a preset priority (which can be configured based on identity, demand or provided resources, etc.) to verify the sum of the rental conditions and the sum of the request information with at least two resource demanders, so that the resource rental conditions of at least two resource providers meet the resource requests of at least two resource demanders through this preset matching rule.
[0052] In a specific implementation scenario, two small entrepreneurial teams X and Y need a small amount of computing resources of different types. Entrepreneurial team X needs high-performance computing capabilities for video rendering, while entrepreneurial team Y needs low-cost large-capacity storage resources. However, the idle resource information registered and published in the resource coordination server does not meet their needs with the rental conditions of a single resource provider. Among them, the large data center D publishes and registers idle resources that are suitable for video rendering and have large-capacity storage, but the minimum consumption threshold is high. At this time, the two resource demanders can be matched. Specifically, the entrepreneurial teams X and Y on the resource demand side each send a resource request to the resource coordination server, including the required resource type, resource quantity, budget range and expected usage time. Data center D, as a resource provider, registers its idle resource information in the resource coordination server and sets the rental conditions. The resource coordination server recognizes that the request information of entrepreneurial teams X and Y meets the rental conditions of data center D after merging, and starts the matching mechanism. The resource coordination server automatically generates a contract and sends a notification to entrepreneurial teams X and Y and data center D to provide the necessary interface address and authentication information. Based on the information in the notification, the entrepreneurial teams X and Y access the idle resources of the data center D through their respective interface addresses to perform the target tasks. Furthermore, after the idle resources perform the target tasks, the entrepreneurial teams X and Y can also evaluate the services of the data center D to form an approval record and add it to the approval chain, so that the resource coordination service can automatically track the behavior of the resource demander and the resource provider, adjust the trust score based on the approval chain, and optimize future resource matching and recommendation. This embodiment of the application does not make specific limitations.
[0053] The embodiment of the present application provides a method for sharing task resources. Compared with the prior art, the embodiment of the present application uses a coordination client to enable a resource provider to upload idle resource information and rental conditions; the coordination client is also used for a resource demander to send a resource request carrying request information; a resource coordination server is used to register and publish the idle resource information, and after receiving the resource request, verify the request information through the rental conditions, and after verification, send the request information to the coordination client corresponding to the resource provider, so that the resource provider requests the resource container corresponding to the resource provider to execute the target task through the request information. The resource container is a resource environment built based on a virtual instruction set architecture. The service end uniformly verifies the demander and the provider, thereby realizing flexible sharing of idle resources between the demander and the provider, ensuring the security and efficiency of resource coordination between the two parties, and the lightweight resource container built based on wasm greatly reduces the system coordination burden, thereby improving the efficiency of resource utilization.
[0054] The present application embodiment provides another task resource sharing method, which is applied to the coordination client, such as Figure 4 As shown, the method includes: 201. When the operator is determined to be a resource provider, idle resource information and lease conditions are sent to the resource coordination server.
[0055] In the embodiment of the present application, the current execution subject, as the execution end for coordinating task resources, can be a coordination client to determine the user identity according to the operation content of different users. For example, when the user chooses to upload idle resources, it is a resource provider, and when the user chooses to request resources, it is a resource demander. The embodiment of the present application does not make specific restrictions. When the operation content of uploading idle resource information and rental conditions is determined to be a resource provider, the coordination client of the current execution end sends the idle resource information and rental conditions to the resource coordination server, so that the resource coordination server registers and publishes the idle resource information and then coordinates the task resources. Among them, the rental conditions are used to characterize the use conditions set by the resource provider for the idle resources, including but not limited to time conditions, payment conditions, etc., which are not specifically limited in the embodiment of the present application. Idle resource information is resource information that can be shared with resource demanders for use, including but not limited to specific computing power size, memory location, etc., which are not specifically limited in the embodiment of the present application.
[0056] 202. When the operator is determined to be a resource demander, a resource request is sent to the resource coordination server.
[0057] In the embodiment of the present application, when the resource demander is determined to be a resource demander through the operation content that triggers the resource request, the resource request is sent to the resource coordination server through the coordination client of the current execution end, so that the request information carried in the resource request is verified by the resource coordination server according to the lease conditions. At this time, the request information is used to represent the information and budget information of the resource demander's request for coordinated use of resources. For example, the request information is to use memory a from 12 o'clock to 1 o'clock, and the budget is x yuan. The embodiment of the present application does not make specific restrictions. The resource coordination server verifies the request information carried in the resource request based on the lease conditions, that is, determines whether the request information meets the lease conditions. When the current execution end verifies the request information and the lease conditions, it can compare the content in the request information with the lease conditions one by one to determine whether the request information meets the lease conditions. In addition, when verifying, the current execution end can compare and verify the received request information one by one with the lease conditions corresponding to the registered and published idle resource information. The embodiment of the present application does not make specific restrictions.
[0058] 203. When the operator is determined to be a resource provider and receives the request information sent by the resource coordination server after verifying the request information, the resource container corresponding to the resource provider is requested to execute the target task according to the request information. The resource container is a resource environment built based on the virtual instruction set architecture.
[0059] In an embodiment of the present application, after the resource coordination server verifies the request information, when the operator is determined to be a resource provider and receives the request information sent by the resource coordination server after the request information is verified, it means that the resource provider can provide idle resources to the resource demander. Therefore, the coordination client as a resource provider requests the corresponding resource container to execute the target task according to the request information. At this time, the resource container is a resource environment built based on a virtual instruction set architecture, that is, a sandbox environment built based on the virtual instruction set architecture WebAssembly (WASM for short), which is not specifically limited in the embodiment of the present application.
[0060] In another embodiment of the present application, for further definition and explanation, the steps further include: Obtain at least one permission chain that has been configured by the resource coordination server; When the resource demander and the resource provider are on the same permission chain and the idle resource information provided by the resource provider is unknown, a resource provider matching the request conditions of the resource demander is determined from the permission chain to trigger the resource provider to perform an autonomous transaction with the resource demander.
[0061] In order to achieve the purpose of flexible resource coordination, as a client that performs operations as a resource demander and a resource provider, the current execution end obtains at least one permission chain configured in the resource coordination server. At this time, the permission chain includes multiple resource providers and multiple resource demanders. The permission conditions are used to characterize the restriction content for classified authorization of different resource providers and different resource demanders. Autonomous transactions are performed between the resource providers and resource demanders in the permission chain, and the embodiments of the present application do not make specific limitations.
[0062] In some embodiments, when the resource demander and the resource provider are in the same permission chain and the idle resource information provided by the resource provider is unknown, a polling method can be used to determine the resource provider that matches the request conditions of the resource demander from the permission chain, so as to trigger the resource provider to perform an autonomous transaction with the resource demander. The embodiments of the present application do not make specific restrictions. In addition, the autonomous transaction in the embodiments of the present application is that the resource demander directly sends a request to the resource provider, so that the resource provider provides idle resources to the resource demander through the resource container, without the need for the resource demander to send a resource request to the resource coordination server and verify it, which greatly improves the coordination efficiency of idle resources.
[0063] The embodiment of the present application provides another method for sharing task resources, by coordinating the client to upload the idle resources and rental conditions of the resource provider and sending the resource request of the resource demander, so that the demander and the provider are uniformly verified by the server, and the idle resources are flexibly shared between the demander and the provider, ensuring the security and efficiency of the resource coordination between the two parties. In addition, the lightweight resource container built based on wasm greatly reduces the system coordination burden, thereby improving the efficiency of resource utilization.
[0064] Furthermore, as a response to the above Figure 1 The implementation of the method shown in the embodiment of the present application provides a task resource sharing device, such as Figure 5 As shown, the device comprises: The acquisition module 31 is used to acquire the idle resource information and rental conditions uploaded by the resource provider through the corresponding coordination client, and register and publish the idle resource information; A verification module 32, configured to respond to a resource request sent by a resource demander through a corresponding coordination client, and verify the request information carried in the resource request through the rental condition; The generation module 33 is used to send the request information to the coordination client corresponding to the resource provider after the request information is verified, so that the resource provider requests the resource container corresponding to the resource provider to execute the target task according to the request information. The resource container is a resource environment built based on the virtual instruction set architecture.
[0065] Furthermore, the device further comprises: a synchronization module, The verification module is specifically used to parse the time condition, resource quantity condition and transaction condition in the lease condition; verify the target coordination time, the resource budget information and the requested resource quantity according to the time condition, the resource quantity condition and the transaction condition; The synchronization module is used to complete resource settlement and resource release by the resource container after the coordination client corresponding to the resource demander requests the resource container to execute the target task according to the coordination information, and synchronize the generated resource coordination settlement information to the coordination clients corresponding to the resource demander and the resource provider respectively.
[0066] Furthermore, the device also includes: A generation module, used to generate at least one permission chain and configure permission conditions for the permission chain, wherein the permission conditions are used to represent the restriction content of classified authorization for different resource providers and different resource demanders; A configuration module is used to configure the resource provider and the resource demander in the permission chain when the resource provider and the resource demander complete the authorization verification based on the permission condition through the corresponding coordination client, and perform autonomous transactions between the resource provider and the resource demander in the permission chain.
[0067] Furthermore, the acquisition module is also used to obtain request information from at least two resource demanders when the request information of a single resource demander fails to pass the verification of a single rental condition; when there is at least one resource provider whose sum of rental conditions meets the request information obtained after matching and adjustment expected by the resource demander, the request information of the at least two resource demanders is adjusted and allocated according to preset matching rules to obtain the matched request information, so as to request the resource container corresponding to the resource provider to execute the target task based on the matched request information.
[0068] Furthermore, the verification module is specifically used to obtain the leasing conditions of at least two resource providers; when the request information of a single resource demander passes the verification of at least two of the leasing conditions, the idle resource information of at least two of the resource providers is adjusted and allocated according to the preset matching rules to obtain the matched request information, so as to request the resource container corresponding to the resource provider to execute the target task based on the matched request information; or, when the sum of the request information of at least two resource demanders passes the verification of at least two of the leasing conditions, the idle resource information of at least two of the resource providers is adjusted and allocated according to the preset matching rules to obtain the matched request information, so as to request the resource container corresponding to the resource provider to execute the target task based on the matched request information.
[0069] Furthermore, the preset matching rules include any one of aggregation matching rules, auction matching rules and priority matching rules, so that the resource leasing conditions of a single resource provider can satisfy the resource requests of at least two resource demanders through the preset matching rules; or, the resource leasing conditions of at least two resource providers can satisfy the resource requests of a single resource demander through the preset matching rules; or, the resource leasing conditions of at least two resource providers can satisfy the resource requests of at least two resource demanders through the preset matching rules.
[0070] The embodiment of the present application provides a task resource sharing device. Compared with the prior art, the embodiment of the present application uses a coordination client to enable a resource provider to upload idle resource information and rental conditions; the coordination client is also used for a resource demander to send a resource request carrying request information; a resource coordination server is used to register and publish the idle resource information, and after receiving the resource request, verify the request information through the rental conditions, and after verification, send the request information to the coordination client corresponding to the resource provider, so that the resource provider requests the resource container corresponding to the resource provider to execute the target task through the request information. The resource container is a resource environment built based on a virtual instruction set architecture. The service end uniformly verifies the demander and the provider, thereby realizing flexible sharing of idle resources between the demander and the provider, ensuring the security and efficiency of resource coordination between the two parties, and the lightweight resource container built based on wasm greatly reduces the system coordination burden, thereby improving the efficiency of resource utilization.
[0071] Furthermore, as a response to the above Figure 4 The implementation of the method shown in the figure, the embodiment of the present application provides another task resource sharing device, such as Figure 6 As shown, the device comprises: The first sending module 41 is used to send idle resource information and lease conditions to the resource coordination server when the operator is determined to be a resource provider, so that the resource coordination server registers and publishes the idle resource information and then performs task resource coordination; The second sending module 42 is used to send a resource request to the resource coordination server when the operator is determined to be a resource demander, so that the resource coordination server verifies the request information carried in the resource request according to the lease condition; The receiving module 43 is used to request the resource container corresponding to the resource provider to execute the target task according to the request information when the operating party is determined to be the resource provider and receives the request information sent by the resource coordination server after verifying the request information. The resource container is a resource environment built based on the virtual instruction set architecture.
[0072] Furthermore, the device also includes: An acquisition module, used to acquire at least one permission chain that has been configured by the resource coordination server, wherein the permission chain includes multiple resource providers and multiple resource demanders, and the permission conditions are used to represent the restriction content of classified authorization for different resource providers and different resource demanders, and autonomous transactions are performed between resource providers and resource demanders in the permission chain; A determination module is used to determine a resource provider that matches the request conditions of the resource demander from the permission chain when the resource demander and the resource provider are on the same permission chain and the idle resource information provided by the resource provider is unknown, so as to trigger the resource provider to perform an autonomous transaction with the resource demander.
[0073] The embodiment of the present application provides another task resource sharing device, which coordinates the client to upload the idle resources and rental conditions of the resource provider and sends the resource request of the resource demander, so that the demander and the provider are uniformly verified by the server, thereby realizing flexible sharing of idle resources between the demander and the provider, ensuring the security and efficiency of resource coordination between the two parties, and the lightweight resource container built based on wasm greatly reduces the system coordination burden, thereby improving the efficiency of resource utilization.
[0074] Furthermore, as a response to the above Figure 1 as well as Figure 4 The implementation of the method shown in the embodiment of the present application provides a task resource sharing system, such as Figure 7 As shown, the system includes: a resource coordination server 51, a coordination client 52, The coordination client is used by resource providers to upload idle resource information and rental conditions; The coordination client is also used by the resource demander to send a resource request carrying request information; The resource coordination server is used to register and publish the idle resource information, and after receiving the resource request, verify the request information through the rental conditions, and after verification, send the request information to the coordination client corresponding to the resource provider, so that the resource provider requests the resource container corresponding to the resource provider to execute the target task through the request information, and the source container is a resource environment built based on the virtual instruction set architecture.
[0075] The embodiment of the present application provides a task resource sharing system, which realizes flexible allocation of idle resources between the demander and the provider through interaction among the resource demander, the resource provider, and the resource coordination server, thereby ensuring the security and efficiency of resource coordination between the two parties. In addition, the lightweight resource container Wasm greatly reduces the system coordination burden, thereby improving the efficiency of resource utilization.
[0076] According to an embodiment of the present application, a storage medium is provided, wherein the storage medium stores at least one executable instruction, and the computer executable instruction can execute the task resource sharing method in any of the above method embodiments.
[0077] Figure 8 A schematic diagram of the structure of a terminal provided according to an embodiment of the present application is shown, and the specific embodiment of the present application does not limit the specific implementation of the terminal.
[0078] like Figure 8 As shown, the terminal may include: a processor (processor) 602 , a communication interface (Communications Interface) 604 , a memory (memory) 606 , and a communication bus 608 .
[0079] The processor 602 , the communication interface 604 , and the memory 606 communicate with each other via a communication bus 608 .
[0080] The communication interface 604 is used to communicate with other devices such as clients or other servers.
[0081] The processor 602 is used to execute the program 610, and specifically can execute the relevant steps in the above-mentioned task resource sharing method embodiment.
[0082] Specifically, the program 610 may include program codes, which include computer operation instructions.
[0083] The processor 602 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application. The one or more processors included in the terminal may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.
[0084] The memory 606 is used to store the program 610. The memory 606 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0085] The program 610 may be specifically configured to enable the processor 602 to perform the following operations: Obtain idle resource information and rental conditions uploaded by the resource provider through the corresponding coordination client, and register and publish the idle resource information; In response to a resource request sent by a resource demander through a corresponding coordination client, verifying the request information carried in the resource request through the lease condition; When the request information is verified, the request information is sent to the coordination client corresponding to the resource provider, so that the resource provider requests the resource container corresponding to the resource provider to execute the target task according to the request information. The resource container is a resource environment built based on the virtual instruction set architecture.
[0086] According to an embodiment of the present application, another storage medium is provided, wherein the storage medium stores at least one executable instruction, and the computer executable instruction can execute the task resource sharing method in any of the above method embodiments.
[0087] Fig. 9 A schematic diagram of the structure of another terminal provided according to an embodiment of the present application is shown. The specific embodiment of the present application does not limit the specific implementation of the terminal.
[0088] like Fig. 9 As shown, the terminal may include: a processor (processor) 702 , a communication interface (Communications Interface) 704 , a memory (memory) 706 , and a communication bus 708 .
[0089] The processor 702 , the communication interface 704 , and the memory 706 communicate with each other via a communication bus 708 .
[0090] The communication interface 704 is used to communicate with other devices such as clients or other servers.
[0091] The processor 702 is used to execute the program 710, and specifically can execute the relevant steps in the above-mentioned task resource sharing method embodiment.
[0092] Specifically, the program 710 may include program codes, which include computer operation instructions.
[0093] The processor 702 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application. The one or more processors included in the terminal may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.
[0094] The memory 706 is used to store the program 710. The memory 706 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0095] The program 710 may be specifically configured to enable the processor 702 to perform the following operations: When the operator is determined to be a resource provider, the idle resource information and the lease conditions are sent to the resource coordination server, so that the resource coordination server registers and publishes the idle resource information and then coordinates the task resources; When the operator is determined to be a resource demander, a resource request is sent to the resource coordination server, so that the resource coordination server verifies the request information carried in the resource request according to the lease condition; When the operator is determined to be a resource provider and receives the request information sent by the resource coordination server after verifying the request information, the resource container corresponding to the resource provider is requested to execute the target task according to the request information. The resource container is a resource environment built based on the virtual instruction set architecture.
[0096] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.
[0097] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A task resource sharing method, applied to a resource coordination server, characterized in that: include: Obtain idle resource information and rental conditions uploaded by the resource provider through the corresponding coordination client, and register and publish the idle resource information; In response to a resource request sent by a resource demander through a corresponding coordination client, verifying the request information carried in the resource request through the lease condition; When the request information is verified, the request information is sent to the coordination client corresponding to the resource provider, so that the resource provider requests the resource container corresponding to the resource provider to execute the target task according to the request information. The resource container is a resource environment built based on the virtual instruction set architecture.
2. The method according to claim 1, characterized in that The request information includes target coordination time, resource budget information, and requested resource amount, and the verifying the request information carried in the resource request by using the lease condition includes: Analyze the time conditions, resource quantity conditions and transaction conditions in the rental conditions; Verifying the target coordination time, the resource budget information, and the requested resource quantity according to the time condition, the resource quantity condition, and the transaction condition; After sending the request information to the coordination client corresponding to the resource demander, the method further includes: When the coordination client corresponding to the resource demander requests the resource container to perform the target task according to the coordination information, the resource container completes resource settlement and resource release, and synchronizes the generated resource coordination settlement information to the coordination clients corresponding to the resource demander and the resource provider respectively.
3. The method according to claim 2, characterized in that The method further comprises: Generate at least one permission chain, and configure permission conditions for the permission chain, wherein the permission conditions are used to represent the restriction content of classified authorization for different resource providers and different resource demanders; When the resource provider and the resource demander complete the authorization verification based on the licensing conditions through the corresponding coordination client, the resource provider and the resource demander are configured in the licensing chain, and autonomous transactions are performed between the resource provider and the resource demander in the licensing chain.
4. The method according to claim 1, characterized in that After verifying the request information carried in the resource request by using the lease condition, the method further includes: When the request information of a single resource demander fails to pass the verification of the single rental condition, obtaining the request information of at least two resource demanders; When the sum of the leasing conditions of at least one of the resource providers satisfies the request information obtained after the expected matching and adjustment of the resource demander, the request information of the at least two resource demanders is adjusted and allocated according to the preset matching rules to obtain the matched request information, so as to request the resource container corresponding to the resource provider to execute the target task based on the matched request information.
5. The method according to claim 1, characterized in that The verifying the request information carried in the resource request by using the lease condition includes: Obtain the lease conditions of at least two resource providers; When the request information of a single resource demander passes the verification of at least two of the rental conditions, the idle resource information of at least two of the resource providers is adjusted and allocated according to the preset matching rules to obtain the matched request information, so as to request the resource container corresponding to the resource provider to execute the target task based on the matched request information; or, When the sum of the request information of at least two resource demanders passes the verification of at least two of the leasing conditions, the idle resource information of at least two resource providers is adjusted and allocated according to the preset matching rules to obtain the matched request information, so as to request the resource container corresponding to the resource provider to execute the target task based on the matched request information.
6. The method according to claim 4 or 5, characterized in that: The preset matching rules include any one of aggregation matching rules, auction matching rules and priority matching rules, so that the resource leasing conditions of a single resource provider can meet the resource requests of at least two resource demanders through the preset matching rules; or, the resource leasing conditions of at least two resource providers can meet the resource requests of a single resource demander through the preset matching rules; or, the resource leasing conditions of at least two resource providers can meet the resource requests of at least two resource demanders through the preset matching rules.
7. A task resource sharing method, applied to a coordination client, characterized in that: include: When the operator is determined to be a resource provider, the idle resource information and the lease conditions are sent to the resource coordination server, so that the resource coordination server registers and publishes the idle resource information and then coordinates the task resources; When the operator is determined to be a resource demander, a resource request is sent to the resource coordination server, so that the resource coordination server verifies the request information carried in the resource request according to the lease condition; When the operator is determined to be a resource provider and receives the request information sent by the resource coordination server after verifying the request information, the resource container corresponding to the resource provider is requested to execute the target task according to the request information. The resource container is a resource environment built based on the virtual instruction set architecture.
8. The method according to claim 7, characterized in that The method further comprises: Acquire at least one permission chain that has been configured by the resource coordination server, wherein the permission chain includes multiple resource providers and multiple resource demanders, the permission conditions are used to characterize the restriction content of classified authorization for different resource providers and different resource demanders, and autonomous transactions are performed between resource providers and resource demanders in the permission chain; When the resource demander and the resource provider are on the same permission chain and the idle resource information provided by the resource provider is unknown, a resource provider matching the request conditions of the resource demander is determined from the permission chain to trigger the resource provider to perform an autonomous transaction with the resource demander.
9. A task resource sharing system, characterized in that: include: Resource coordination server, coordination client, The coordination client is used by resource providers to upload idle resource information and rental conditions; The coordination client is also used by the resource demander to send a resource request carrying request information; The resource coordination server is used to register and publish the idle resource information, and after receiving the resource request, verify the request information through the rental conditions, and after verification, send the request information to the coordination client corresponding to the resource provider, so that the resource provider requests the resource container corresponding to the resource provider to execute the target task through the request information, and the source container is a resource environment built based on the virtual instruction set architecture.
10. A task resource sharing device, characterized in that: include: An acquisition module is used to acquire idle resource information and rental conditions uploaded by a resource provider through a corresponding coordination client, and to register and publish the idle resource information; A verification module, configured to respond to a resource request sent by a resource demander through a corresponding coordination client, and verify the request information carried in the resource request through the rental condition; A generation module is used to send the request information to the coordination client corresponding to the resource provider after the request information is verified, so that the resource provider requests the resource container corresponding to the resource provider to execute the target task according to the request information, and the source container is a resource environment built based on the virtual instruction set architecture.
11. A task resource sharing device, characterized in that: include: A first sending module is used to send idle resource information and lease conditions to the resource coordination server when the operator is determined to be a resource provider, so that the resource coordination server registers and publishes the idle resource information and then performs task resource coordination; A second sending module is used to send a resource request to the resource coordination server when the operator is determined to be a resource demander, so that the resource coordination server verifies the request information carried in the resource request according to the lease condition; A receiving module is used to request the resource container corresponding to the resource provider to execute the target task according to the request information when the operator is determined to be the resource provider and receives the request information sent by the resource coordination server after verification. The resource container is a resource environment built based on the virtual instruction set architecture.
12. A computer-readable storage medium having a computer program / instruction stored thereon, characterized in that: When the computer program / instructions are executed by a processor, the steps of the method according to claim 1 are implemented.
13. A computer device comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of the method of claim 1.
14. A computer-readable storage medium having a computer program / instruction stored thereon, characterized in that: When the computer program / instructions are executed by a processor, the steps of the method according to claim 7 are implemented.
15. A computer device comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of the method of claim 7.
Citation Information
Patent Citations
Open power system numerical simulation system and method based on cloud technology
CN103246546A
Resource configuration method and system
CN110147915A
Cloud resource settlement method and system
CN113961360A
Cloud game top-speed starting method, device and system based on dynamic loading mechanism
CN117271001A
Resource processing method and device, equipment, medium and program product
CN117407162A