Execution of services in distributed computing environments using initial random access memory disk schemes
Services can be executed on nodes using initial random access memory disk (initrd) schemes. For example, a system can receive, from an orchestrator node, a request to execute a service at a host node. The request can include data indicative of the service, and the host node can include an initrd scheme. The system can determine that the service is available for execution at the host node based on the service being included in the initrd scheme. In response to determining that the service is available, the system can further transmit a notification to the orchestrator node indicating that the service is available for execution at the host node. Additionally, the system can execute the service on the host node as part of executing the initrd scheme.
1 . A system comprising:
a processing device; and
a memory device that includes instructions executable by the processing device for causing the processing device to perform operations comprising:
receiving, from an orchestrator node of a plurality of nodes, an activation request configured to cause a host node of the plurality of nodes to power on;
receiving, from the orchestrator node and subsequent to the host node powering on, a request to execute a service at the host node, the request comprising data indicative of the service, the host node comprising an initial random-access memory disk (initrd) scheme;
determining, based on the data indicative of the service, whether one or more files for executing the service are preinstalled in the initrd scheme;
in response to determining that the one or more files are preinstalled in the initrd scheme:
transmitting a notification to the orchestrator node indicating that the service is available for execution at the host node; and
performing a boot process to provision the host node, wherein performing the boot process comprises loading the one or more files of the service to execute the service on the host node as part of executing the initrd scheme.
2 . The system of claim 1 , wherein the request is a first request, the service is a first service, the notification is a first notification, and wherein the memory device further includes instructions executable by the processing device for causing the processing device to perform operations comprising:
receiving, from the orchestrator node, a second request to execute a second service at the host node;
determining that second files for executing the second service are not preinstalled in the initrd scheme;
in response to determining that the second files are not preinstalled in the initrd scheme, transmitting a second notification to the orchestrator node, the second notification indicating files for a plurality of services that are included in the initrd scheme; and
subsequent to transmitting the second notification, receiving, from the orchestrator node, a third request to execute a third service on the host node, where the third service is included in the plurality of services.
3 . The system of claim 1 , wherein the request is a first request, the service is a first service, the notification is a first notification, and wherein the memory device further includes instructions executable by the processing device for causing the processing device to perform operations comprising:
transmitting, to the orchestrator node, a third notification indicating that files for executing a plurality of services are preinstalled in the initrd scheme;
in response to transmitting the third notification, receiving, from the orchestrator node, a fourth request to execute a fourth service of the plurality of services at the host node; and
in response to the fourth request, loading fourth files for the fourth service on the host node as part of executing the initrd scheme.
4 . The system of claim 3 , wherein the memory device further includes instructions executable by the processing device for causing the processing device to perform operations comprising:
prior to transmitting the third notification, detecting, by a monitoring node of the plurality of nodes, a power state of the host node, wherein the monitoring node is configured to transmit an indication of the power state of the host node to the orchestrator node, and wherein the monitoring node is configured to power on or power off the host node.
5 . The system of claim 1 , wherein the orchestrator node is configured to monitor system performance of the plurality of nodes, and wherein the orchestrator node is configured to transmit the activation request and the request to execute the service based on the system performance.
6 . The system of claim 1 , wherein the service is executed from volatile memory of the host node.
7 . A computer-implemented method comprising:
receiving, from an orchestrator node of a plurality of nodes, an activation request configured to cause a host node of the plurality of nodes to power on;
receiving, from the orchestrator node and subsequent to the host node powering on, a request to execute a service at the host node, the request comprising data indicative of the service, the host node comprising an initial random-access memory disk (initrd) scheme;
determining, based on the data indicative of the service, whether one or more files for executing the service are preinstalled in the initrd scheme;
in response to determining that the one or more files are preinstalled in the initrd scheme:
transmitting a notification to the orchestrator node indicating that the service is available for execution at the host node; and
performing a boot process to provision the host node, wherein performing the boot process comprises loading the one or more files of the service to execute the service on the host node as part of executing the initrd scheme.
8 . The computer-implemented method of claim 7 , wherein the request is a first request, the service is a first service, the notification is a first notification, and wherein the computer-implemented method further comprises:
receiving, from the orchestrator node, a second request to execute a second service at the host node;
determining that second files for executing the second service are not preinstalled in the initrd scheme;
in response to determining that the second files are not preinstalled in the initrd scheme, transmitting a second notification to the orchestrator node, the second notification indicating files for a plurality of services that are included in the initrd scheme; and
subsequent to transmitting the second notification, receiving, from the orchestrator node, a third request to execute a third service on the host node, where the third service is included in the plurality of services.
9 . The computer-implemented method of claim 7 , wherein the request is a first request, the service is a first service, the notification is a first notification, and wherein the computer-implemented method further comprises:
transmitting, to the orchestrator node, a third notification indicating that files for executing a plurality of services are preinstalled in the initrd scheme;
in response to transmitting the third notification, receiving, from the orchestrator node, a fourth request to execute a fourth service of the plurality of services at the host node; and
in response to the fourth request, loading fourth files for the fourth service on the host node as part of executing the initrd scheme.
10 . The computer-implemented method of claim 9 , further comprising:
prior to transmitting the third notification, detecting, by a monitoring node of the plurality of nodes, a power state of the host node, wherein the monitoring node is configured to transmit an indication of the power state of the host node to the orchestrator node, and wherein the monitoring node is configured to power on or power off the host node.
11 . The computer-implemented method of claim 7 , wherein the orchestrator node is configured to monitor system performance of a system that comprises the plurality of nodes, and wherein the orchestrator node transmits the activation request and the request to execute the service based on the system performance.
12 . The computer-implemented method of claim 7 , wherein the service is executed from volatile memory of the host node.
13 . A non-transitory computer-readable medium comprising instructions that are executable by a processing device for causing the processing device to perform operations comprising:
receiving, from an orchestrator node of a plurality of nodes, an activation request configured to cause a host node of the plurality of nodes to power on;
receiving, from the orchestrator node and subsequent to the host node powering on, a request to execute a service at the host node, the request comprising data indicative of the service, the host node comprising an initial random-access memory disk (initrd) scheme;
determining, based on the data indicative of the service, whether one or more files for executing the service are preinstalled in the initrd scheme;
in response to determining that the one or more files are preinstalled in the initrd scheme:
transmitting a notification to the orchestrator node indicating that the service is available for execution at the host node; and
performing a boot process to provision the host node, wherein performing the boot process comprises loading the one or more files of the service to execute the service on the host node as part of executing the initrd scheme.
14 . The non-transitory computer-readable medium of claim 13 , wherein the request is a first request, the service is a first service, the notification is a first notification, and further comprising instructions executable by the processing device for causing the processing device to perform operations comprising:
receiving, from the orchestrator node, a second request to execute a second service at the host node;
determining that second files for executing the second service are not preinstalled in the initrd scheme;
in response to determining that the second files are not preinstalled in the initrd scheme, transmitting a second notification to the orchestrator node, the second notification indicating files for a plurality of services that are included in the initrd scheme; and
subsequent to transmitting the second notification, receiving, from the orchestrator node, a third request to execute a third service on the host node, where the third service is included in the plurality of services.
15 . The non-transitory computer-readable medium of claim 13 , wherein the request is a first request, the service is a first service, the notification is a first notification, and further comprising instructions executable by the processing device for causing the processing device to perform operations comprising:
transmitting, to the orchestrator node, a third notification indicating that files for executing a plurality of services are preinstalled in the initrd scheme;
in response to transmitting the third notification, receiving, from the orchestrator node, a fourth request to execute a fourth service of the plurality of services at the host node; and
in response to the fourth request, loading fourth files for the fourth service on the host node as part of executing the initrd scheme.
16 . The non-transitory computer-readable medium of claim 15 , further comprising instructions executable by the processing device for causing the processing device to perform operations comprising:
prior to transmitting the third notification, detecting, by a monitoring node of the plurality of nodes, a power state of the host node, wherein the monitoring node is configured to transmit an indication of the power state of the host node to the orchestrator node, and wherein the monitoring node is configured to power on or power off the host node.
17 . The non-transitory computer-readable medium of claim 13 , wherein the orchestrator node is configured to monitor system performance of a system that comprises the plurality of nodes, and wherein the orchestrator node transmits the activation request and the request to execute the service based on the system performance.
18 . The non-transitory computer-readable medium of claim 13 , wherein the service is executed from volatile memory of the host node.
19 . The system of claim 1 , wherein the memory device further includes instructions executable by the processing device for causing the processing device to execute the initrd scheme by setting a configuration parameter for the one or more files.
20 . The system of claim 1 , wherein the service comprises a networking service.