Load balancing in blockchain environments
Hardware and software resources are load balanced when processing multiple blockchains. As more and more entities (whether public or private) are expected to generate their own blockchains for verification, a server or other resource in a blockchain environment may be over utilized. For example, as banks, websites, and retailers issue their own private cryptocoinage, the number of financial transactions may clog or hog networking and/or hardware resources. A blockchain load balancing mechanism thus allocates resources among the multiple blockchains.
1. A method executed by a server that load balances virtual machines processing blockchains, the method comprising:
receiving, by the server, a plurality of blockchains as inputs;
identifying, by the server, a virtual machine of a plurality of virtual machines by querying an electronic database that electronically associates the virtual machines to blockchain parameters including a parameter associated with a corresponding blockchain;
load balancing, by the server, the plurality of virtual machines to the plurality of blockchains by executing a blockchain load balancing mechanism that assigns the virtual machine to the corresponding blockchain; and
sending, by the server, the corresponding blockchain to the virtual machine for processing.
2. The method of claim 1 , further comprising receiving a number of blockchain transactions associated with the corresponding blockchain.
3. The method of claim 2 , further comprising determining the number of blockchain transactions associated with the corresponding blockchain.
4. The method of claim 3 , further comprising assigning the virtual machine to the corresponding blockchain based on the number of the blockchain transactions associated with the corresponding blockchain.
5. The method of claim 1 , further comprising receiving a cryptographic coinage transaction associated with the corresponding blockchain.
6. The method of claim 1 , further comprising determining a bit rate associated with the corresponding blockchain.
7. The method of claim 6 , further comprising assigning the virtual machine to the corresponding blockchain based on the bit rate.
8. A server that load balances virtual machines processing blockchains, the server comprising:
a hardware processor; and
a memory device storing instructions that when executed by the hardware processor perform operations, the operations comprising:
receiving a plurality of blockchains as inputs;
identifying a virtual machine of a plurality of virtual machines by querying an electronic database that electronically associates the virtual machines to blockchain parameters including a parameter associated with a corresponding blockchain;
load balancing the plurality of virtual machines to the plurality of blockchains by executing a blockchain load balancing mechanism that assigns the virtual machine to the corresponding blockchain; and
sending the corresponding blockchain to the virtual machine for processing.
9. The system of claim 8 , wherein the operations further comprise receiving a number of blockchain transactions associated with the corresponding blockchain.
10. The system of claim 9 , wherein the operations further comprise determining the number of blockchain transactions associated with the corresponding blockchain.
11. The system of claim 10 , wherein the operations further comprise assigning the virtual machine to the corresponding blockchain based on the number of blockchain transactions associated with the corresponding blockchain.
12. The system of claim 8 , wherein the operations further comprise receiving a cryptographic coinage transaction associated with the corresponding blockchain.
13. The system of claim 8 , wherein the operations further comprise determining a bit rate associated with the corresponding blockchain.
14. The system of claim 13 , wherein the operations further comprise assigning the virtual machine to the corresponding blockchain based on the bit rate.
15. A memory device storing instructions that when executed by a hardware processor perform operations, the operations comprising:
receiving a plurality of blockchains as inputs;
identifying a virtual machine of a plurality of virtual machines by querying an electronic database that electronically associates the virtual machines to blockchain parameters including a parameter associated with the corresponding blockchain;
load balancing the plurality of virtual machines to the plurality of blockchains by executing a blockchain load balancing mechanism that assigns the virtual machine to the corresponding blockchain;
sending the corresponding blockchain to the virtual machine for processing; and
generating a blockchain data layer that records the blockchain load balancing mechanism assigning the virtual machine to the corresponding blockchain.
16. The memory device of claim 15 , wherein the operations further comprise receiving a number of blockchain transactions associated with the corresponding blockchain.
17. The memory device of claim 16 , wherein the operations further comprise determining the number of blockchain transactions associated with the corresponding blockchain.
18. The memory device of claim 17 , wherein the operations further comprise assigning the virtual machine to the corresponding blockchain based on the number of blockchain transactions associated with the corresponding blockchain.
19. The memory device of claim 15 , wherein the operations further comprise receiving a cryptographic coinage transaction associated with the corresponding blockchain.
20. The memory device of claim 15 , wherein the operations further comprise:
determining a bit rate associated with the corresponding blockchain; and
assigning the virtual machine to the corresponding blockchain based on the bit rate.