| CPC H04L 67/51 (2022.05) [G06F 9/45558 (2013.01); H04L 12/66 (2013.01); H04L 41/0816 (2013.01); H04L 63/08 (2013.01); H04L 67/1001 (2022.05); G06F 2009/45595 (2013.01)] | 11 Claims |

|
1. A method for dynamically scaling and orchestrating network services automatically and without user intervention on a network comprising a cluster of two or more computers, without using any cloud or Internet connections, the network being contained within an internal intranet, the method comprising:
forming a network cluster comprising the two or more computers by:
starting a user service on each computer in the cluster;
starting an agent service on each computer in the cluster;
starting an authorization service on a computer in the cluster;
starting a gateway service on one or more computers in the cluster;
starting a director service on a computer in the cluster that is not running the authorization service;
receiving, at the gateway service, a request for a network service from a user of one of the computers in the cluster, wherein the request comprises one or more instructions;
redirecting the request to the authorization service to authenticate the user when an authorization header is absent from the request;
providing, from the authorization service, an authorization header with the request;
determining, by the gateway service, when an instance of the network service is available on one of the computers in the cluster, wherein the instance of the network service is available when the instance of the network service is idle and running on a computer in the cluster, and enabling the user to access the instance of the network service;
when an instance of the network service is unavailable on the computers in the cluster, requesting, by the gateway service, the director service create a new instance of the network service on an available computer in the cluster;
creating, by the director service, the new instance of the network service;
enabling the user to access the new instance of the network service;
connecting the user service to the instance of the network service or the new instance of the network service;
registering the gateway service as an observer of the new instance; and
purging the authorization header and the instructions from the gateway service;
wherein:
the one or more instructions comprise:
one or more command line commands to execute the network service;
one or more configurations required for the network service; and
one or more pre-requisite software programs that the network service requires; and
a computer in the cluster is available when the computer has enough free computing resources to run the new instance of the network service.
|