Category Archives: openstack

Adjust total file descriptors of rabbitmq

The total file descriptors number of rabbitmq is 1024 by default. This value is not big enough obviously when your openstack cluster grows. If the file descriptor or socket descriptor reaches its limit, the rabbitmq server will close incoming connections. and you will see the error below:

AMQP server on controller1:5672 is unreachable: timed out. Trying again in 1 seconds.
AMQP server on controller1:5672 is unreachable: timed out. Trying again in 2 seconds.
AMQP server on controller1:5672 is unreachable: timed out. Trying again in 4 seconds.
AMQP server on controller1:5672 is unreachable: timed out. Trying again in 6 seconds.
AMQP server on controller1:5672 is unreachable: timed out. Trying again in 8 seconds.
AMQP server controller1:5672 closed the connection. Check login credentials: Socket closed
AMQP server on controller1:5672 is unreachable: timed out. Trying again in 12 seconds.
AMQP server on controller1:5672 is unreachable: timed out. Trying again in 14 seconds.
AMQP server on controller1:5672 is unreachable: timed out. Trying again in 16 seconds.
AMQP server on controller1:5672 is unreachable: timed out. Trying again in 18 seconds.
AMQP server on controller1:5672 is unreachable: timed out. Trying again in 20 seconds.
AMQP server controller1:5672 closed the connection. Check login credentials: Socket closed

To check the current status of file descriptors used, you can run command ‘service rabbitmq-server status’
the result is

Continue reading

Monasca installation and configuration guide

In this tutorial, i will describe how to setup monasca components in detail. Before we start, something needs to be confirmed:

  • All the components of monasca can be installed on one node, such as on openstack controller node, or you can deploy it in multi-nodes. In this tutorial, i will install monasca-api in a new VM created in my openstack cluster, which has a floating ip associated. Monasca-agent was installed on controller node. The agent node post metrics to api node through floating ip. the are in the same sub net.
  • All the user name and password in this tutorial is monasca and qydcos. change it to yours.
  • the installation will be performed on ubuntu 14.04 openstack Mitaka version, for liberty, special settings must be made and be described later.
  • All the file related in this tutorial are here, clone it before you start.

    Continue reading

  • Openstack 性能优化之MySQL(MariaDB)

    对于openstack的性能优化有很多方面,这里只对mysql也就是mariadb进行简单优化。对于mysql的默认配置,用作小型站点尚且可以运作。但是对于数据中心的环境,使用mysql的默认配置绝对是不行的。我做了个测试,使用默认的配置,用benchmark测试读时,每秒是1600多个事务,但是优化之后,可以达到六千多个,速度提升六倍。文末或有测试数据。
    这里只讨论几个核心的关键的参数,mysql的参数太多,完全掌握得话大量的时间和精力。

    1, default_storage_engine
    Continue reading

    Deploy VPNaaS in openstack liberty

    Clarifying about the VPN agent and L3 agent for the reference implementations...

    There is a hierarchy for the agents. At the bottom is the FW agent. The L3 agent, is a subclass of the FW agent, using a flag to indicate that FW is enabled. The VPN agent is a subclass of the L3 agent. As a result, there is only ONE agent process started. If you want VPN, you select the VPN agent, which includes all the functionality of the L3 agent (and FW, if flag selected in the code).

    so, when you install neutron-vpn-agent with apt-get in ubuntu os, it will remove l3 agent automatically.

    1, install command:

    apt-get install neutron-vpn-agent neutron-plugin-vpn-agent

    2, configuration
    Continue reading