KOINS.Studio - Articles - Инсталляция и настройка программ - Настройка серверов office.1024.info - Add a new testing server to an existing cluster

Add a new testing server to an existing cluster

  • Add a new instance in Amazon.
    - Security group should be as set for other servers in the cluster (it is used for seraching of servers in the cluster).
    - Volume should be copied from an existing server of the cluster.

  • /etc/sysconfig/network
    Set new domain in HOSTNAME variable.

    /!test-?
    Rename directory to specify correct name.

    /home/this.php
    Set value of ALL_CLUSTER constant.

  • Associate this instance with an ElasticIP address.

  • Create new domain in Route53.

  • Studio - Content - Deploy - Compilation servers - Edit compilation server of the cluster
    Add ID of the new server to instance variable.

  • svn://options/test.wellnessliving.com/project/.config/a.test.php
    - add names of new threads to threads() method.
    - create methods to configure new threads (methods are named after thread names).
    - add IP address of new server to main configuration method.

  • svn://options/test.wellnessliving.com/.htprivate/options/addr.php
    - Set default value of ADDR_TEST_THREAD for new server

  • svn://options/test.wellnessliving.com/.htprivate/options/db.php
    - Add database connections

  • svn://options/test.wellnessliving.com/.htprivate/options/
    Create files for new threads.

  • svn://options/test.wellnessliving.com/core/mp/html/index.php
    Ensure that new thread can be parsed by this file.

  • Run MySQL server at this new server.
    Drop all databases from foreign threads.

  • Go through writable/ directories.
    Drop all subdirectories named after names of threads from other servers.

  • /etc/httpd/vhosts.d/
    /etc/opt/remi/php71/php-fpm.d/
    remove configuration files from foreign threads

  • Studio - Content - Mail boxes
    Create mail boxes for new threads

  • svn://libs/amazon/compile/bin/util/test-install/config.php
    Add description of new server to test_install_config_?() method.
    Deploy to compilation server of the cluster.

  • Compilation server. Run the script:
    /home/compile/bin/util/test-install.php name_of_the_cluster_installation

Last modification: 20.08.18 10:26