[one-users] Customized solution to set up a hybrid Cloud environment for start-up business

Valentin Bud valentin.bud at gmail.com
Thu Sep 20 23:05:52 PDT 2012


Hi Qiubo,

If your public IP address is on the router facing the Internet you'd
have to NAT, port forward to the private IP addresses of the machines
that make up the Cloud.

For example, if you want to access Sunstone, located at 192.168.1.1,
from the Internet and your public IP address is 2.2.2.2 you'd have to
forward 80 and 443 from 2.2.2.2 to 192.168.1.1.

What follows is how I would do it in this given case.

                                                      | 2.2.2.2
                                          - - - - - - - - - - - -
                                          |                        |
                                          |       Router      |
                                          |                        |
                                          ---------------------
                                                      | 192.168.1.1
                                                      |
                              ----------------------------------------
  (LAN Segment/Switch) 192.168.1.0/24
                              |                                              |
                              |                                              |
                              |  .10                                       | .11
                   ------------------
----------------
                   |                    |                          |
                |
                   |        H1       |                          |
   H2      |
                   |                    |                          |
                |
                   ------------------
------------------
                             |  .10
     | .11

------------------------------------------   (LAN
Segment/Switched/Storage Network) 192.168.2.0/24


Set up highly available LVM with DRBD [1] on the storage network.
Mount over NFS as /var/lib/one.

On the LAN segment, the one connected to the router I would set up a
failover IP address (for example 192.168.1.9) with linux ha [2] and
forward the needed ports from 2.2.2.2 to this address.

I would setup nginx on both cloud nodes as a proxy for all apps that
are on VMs on top of the Cloud.

Set up hooks to start the VMs in case one physical node fails.

In this way your Cloud is highly available in case one node fails. You
still need electrical power though :).

[1]: http://www.linbit.com/fileadmin/tech-guides/ha-nfs.pdf
[2]: http://library.linode.com/linux-ha/ip-failover-heartbeat-pacemaker-ubuntu-9.10

Cheers and Good Will,
v

On Fri, Sep 21, 2012 at 8:41 AM, Qiubo Su (David Su) <qiubosu at gmail.com> wrote:
>
> hi Valentin,
>
> thanks for the recommendation.
>
> if go with 2 machines, but only have one external static public IP address (the whole cloud system will be hosted in the office in a residential property with a residential broadband plan), is this ok?
>
> thanks,
> d.s.
>
>
> On Fri, Sep 21, 2012 at 5:27 PM, Valentin Bud <valentin at hackaserver.com> wrote:
>>
>> Hello there,
>>
>> Depending on the hardware I think it's possible to set up one physical machine and host 10 VMs on top of it. But you have to be aware that if your physical machine crashes your business stops.
>>
>> I would go with 2 machines with a high availability OpenNebula setup so in case one physical machine goes kaboom the other can take the load and support the VMs while you deal with the problem.
>>
>> Some articles about OpenNebula and high availability:
>>
>> [1]: http://blog.opennebula.org/?p=1523
>> [2]: https://support.opennebula.pro/entries/20400286-opennebula-with-mysql-cluster-for-high-availability
>>
>> For a better understanding, as a complement to OpenNebula documentation you can try Giovanni Toraldo's book [3]. For me this book was very helpful.
>>
>> [3]: http://www.amazon.com/OpenNebula-Cloud-Computing-Giovanni-Toraldo/dp/1849517460
>>
>> Cheers and Good Will,
>> v
>>
>> On Fri, Sep 21, 2012 at 5:46 AM, Qiubo Su (David Su) <qiubosu at gmail.com> wrote:
>>>
>>> dear opennebula team,
>>>
>>> i want to set up a hybrid cloud environment for start-up business and host it in the office. at this stage, it should be ok if the cloud system could be scaled to 10 VM instances.
>>>
>>> can anyone help to recommend a customized solution for this, if one server only can achieve this?
>>>
>>> thanks,
>>> d.s.
>>>
>>> On Wed, Sep 19, 2012 at 10:49 PM, Qiubo Su (David Su) <qiubosu at gmail.com> wrote:
>>>>
>>>> Dear OpenNebula Team,
>>>>
>>>> I want to download OpenNebula and see there are options like OpenNebula 3.2.1 Ubuntu 10.0.4 amd64 and OpenNebula 3.2.1 CentOS 6.0 x86_64.
>>>>
>>>> For OpenNebula 3.2.1 Ubuntu 10.0.4 amd64, we have to buy AMD processor, but for OpenNebula 3.2.1 CentOS 6.0 x86_64, what type of processor should we buy?
>>>>
>>>> Thanks,
>>>> Q.S.
>>>
>>>
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opennebula.org
>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>>
>>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>



--
w: http://databus.ro/blog
in: http://www.linkedin.com/pub/valentin-bud/9/881/830
t: https://twitter.com/valentinbud



More information about the Users mailing list