This Application claims priority of Taiwan Patent Application No. 102143986, filed on Dec. 2, 2013, the entirety of which is incorporated by reference herein.
Technical Field
The present invention relates to cloud computing, and in particular, to methods for deploying clustered servers and apparatuses using the same.
Description of the Related Art
Cloud computing is the technology providing a variety of computing capabilities that involve a number of computers connected through a communications networks, such as the Internet, a LAN (local area network), etc. It often requires the engineer to spend much time to deploy clustered servers manually. For example, the engineer has to configure each computer to have the capability of a master server, a slave server, a storage server, or any combination thereof. However, the routine manual operations can easily go wrong, and it may cause the cloud computing environment to fail to be successfully established. Thus, it is desirable to have methods for deploying clustered servers and apparatuses using the same to not only reduce the deployment time but also eliminate errors that happen during configuration.
An embodiment of the invention introduces a method for deploying clustered servers, executed by a processing unit of a DHCP (Dynamic Host Configuration Protocol) server, which contains at least the following steps. Deployment information associated with a requesting server is encapsulated into an acknowledgement after the DHCP server receives a request from the requesting server, where the request requests an IP (Internet Protocol) address, which has been assigned by the DHCP server. The acknowledgement is replied to the requesting server, thereby enabling the requesting server to configure itself as a master server or a slave server in a cloud computing environment according to the deployment information of the acknowledgement.
An embodiment of the invention introduces an apparatus for deploying clustered servers, which contains at least a communications interface and a processing unit. The processing unit, coupled to the communications interface, encapsulates deployment information associated with a requesting server into an acknowledgement after receiving a request from the requesting server through the communications interface, where the request requests an IP (Internet Protocol) address, which has been assigned by the DHCP server. The processing unit further replies with the acknowledgement to the requesting server through the communications interface, thereby enabling the requesting server to configure itself as a master server or a slave server in a cloud computing environment according to the deployment information of the acknowledgement.
An embodiment of the invention introduces a method for deploying clustered servers, executed by a processing unit of a server, which contains at least the following steps. Deployment information is obtained from an acknowledgement after receiving the acknowledgement from a DHCP server. The server is configured as a master server or a slave server in a cloud computing environment according to the deployment information of the acknowledgement.
A detailed description is given in the following embodiments with reference to the accompanying drawings.
The present invention can be fully understood by reading the subsequent detailed description and examples with references made to the accompanying drawings, wherein:
The following description is of the best-contemplated mode of carrying out the invention. This description is made for the purpose of illustrating the general principles of the invention and should not be taken in a limiting sense. The scope of the invention is best determined by reference to the appended claims.
The present invention will be described with respect to particular embodiments and with reference to certain drawings, but the invention is not limited thereto and is only limited by the claims. It will be further understood that the terms “comprises,” “comprising,” “includes” and/or “including,” when used herein, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
Use of ordinal terms such as “first”, “second”, “third”, etc., in the claims to modify a claim element does not by itself connote any priority, precedence, or order of one claim element over another or the temporal order in which acts of a method are performed, but are used merely as labels to distinguish one claim element having a certain name from another element having the same name (but for use of the ordinal term) to distinguish the claim elements.
An embodiment of the invention introduces the network architecture containing multiple servers operating in a cloud computing environment.
The DHCP server 110 stores a mapping table, which is employed to recognize whether a computing apparatus requesting an IP address is a clustered computer in the cloud computing environment, and if so, whether its type is the master, slave or storage server. The mapping table in a specific data structure may be stored in the storage unit 240 or the memory 250. An example of an initial mapping table is shown in table 1 as follows.
The DHCP server 110 encapsulates deployment information in a message to be transmitted to the recognized server after receiving a DHCP request requesting an IP address from any of the master server 120, the slave servers 130 to 150 and the storage server 160, thereby enabling the requesting server to complete its configuration for the cloud computing environment according to the deployment information.
Options 100 to 106 list ones, which are not defined in the DHCP specification but used to carry the deployment information of the master server. The above list is not exhaustive, and those skilled in the art will understand that other undefined options can be used to carry the aforementioned deployment information. The value “Hdfs://192.168.1.101:9000” carried in the option “100” describes the location of the storage server 160, which is provided for the slave server(s) 130 to 150 to store working results when they execute the assigned sub-tasks. The value “http://192.168.1.101:8080” carried in the option “104” describes the location of the storage server 160, which is provided for the master server 120 to store the final results collected from the working results. The location “http://192.168.1.101:8080” is also provided to clients for accessing the final results. Values of the options “104”, “105” and “106” are dedicated for configuring the master server.
When recognizing that the requesting server is the slave server (the “slave server” path of step S415), an IP address is reserved from an available address range and replied to the requesting server with an offer message (step S431). Subsequently, when receiving a request 330 containing the reserved IP address from the requesting server (step S433), the DHCP server 110 encapsulates deployment information for the slave server in an acknowledgement 340 and replies with the acknowledgement 340 to the requesting server (step S435). An example of the deployment information for the slave server is shown in table 3 in the following.
When recognizing that the requesting server is the storage server (the “storage server” path of step S415), the fixed IP address for the storage server is obtained and replied to the requesting server with an offer message 320 (step S441), where the fixed IP address for the storage server may be recorded in the mapping table. Subsequently, when receiving a request 330 containing the fixed IP address of the storage server from the requesting server (step S443), the DHCP server 110 encapsulates deployment information for the storage server in an acknowledgement 340 and replies with the acknowledgement 340 to the requesting server (step S445).
Each of the clustered servers has no knowledge regarding its functionality in the cloud computing environment, determines to be a master server, a slave server, a storage server, or any combination thereof through the deployment information of the received acknowledgement 340, and accordingly configures itself.
Although the embodiment has been described as having specific elements in
While the invention has been described by way of example and in terms of the preferred embodiments, it is to be understood that the invention is not limited to the disclosed embodiments. On the contrary, it is intended to cover various modifications and similar arrangements (as would be apparent to those skilled in the art). Therefore, the scope of the appended claims should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements.
Number | Date | Country | Kind |
---|---|---|---|
102143986 A | Dec 2013 | TW | national |
Number | Name | Date | Kind |
---|---|---|---|
7051089 | Johnson | May 2006 | B1 |
7882217 | Katzir | Feb 2011 | B2 |
20020062377 | Hillman | May 2002 | A1 |
20020120706 | Murphy | Aug 2002 | A1 |
20030158886 | Walls | Aug 2003 | A1 |
20060259539 | Martikian | Nov 2006 | A1 |
20080056130 | Desai | Mar 2008 | A1 |
20100191839 | Gandhewar | Jul 2010 | A1 |
20100312875 | Wilerson | Dec 2010 | A1 |
20110030032 | Baykal | Feb 2011 | A1 |
20120011230 | Moreman | Jan 2012 | A1 |
20120215874 | Sequeira | Aug 2012 | A1 |
20130080614 | Iyer | Mar 2013 | A1 |
20140304393 | Annamalaisami | Oct 2014 | A1 |
20150052522 | Chanda | Feb 2015 | A1 |
Number | Date | Country | |
---|---|---|---|
20150156067 A1 | Jun 2015 | US |