<commit_before>.. highlight:: plain

Advanced features
=================

Scalability
^^^^^^^^^^^

Infrared allows to perform scale tests on different services.

Currently supported services for tests:
    * compute
    * ceph-storage
    * swift-storage

#. To scale compute service:

    Deployment should have at least 3 compute nodes.

    Run ansible playbook::

        ansible-playbook -vvvv -i hosts -e @install.yml playbooks/installer/ospd/post_install/scale_compute.yml

    It will scale compute nodes down to 1 and after that scale compute node back to 3.

#. To scale ceph-storage service:

    Deployment should have at least 3 ceph-storage nodes.
<commit_msg>RHOSINFRA-199 Document Ansible tags as installer-breakpoints<commit_after>.. highlight:: plain

Advanced features
=================

Breakpoints
^^^^^^^^^^^

Advanced usage sometimes requires partial execution of the ospd playbook. This can be achieved with
`Ansible tags <http://docs.ansible.com/ansible/playbooks_tags.html>`_

Use `InfraRed` with ``--dry-run`` flag. Instead of executing ansible, this will only generate the required ansible input::

    ir-installer [...] ospd [...] --dry-run -o OUTPUT_FILE

Ansible will take the `yaml` file ``OUTPUT_FILE`` as ``--extra-vars`` input file.

List the available tags of the `ospd` playbooks::

    ansible-playbook -i hosts --extra-vars @OUTPUT_FILE playbooks/install.yml  --list-tags

Execute only the desired tags. For example, this will only install the undercloud and stop::

    ansible-playbook -i hosts --extra-vars @OUTPUT_FILE playbooks/install.yml --tags=undercloud


Scalability
^^^^^^^^^^^

Infrared allows to perform scale tests on different services.

Currently supported services for tests:
    * compute
    * ceph-storage
    * swift-storage

#. To scale compute service:

    Deployment should have at least 3 compute nodes.

    Run ansible playbook::

        ansible-playbook -vvvv -i hosts -e @install.yml playbooks/installer/ospd/post_install/scale_compute.yml

    It will scale compute nodes down to 1 and after that scale compute node back to 3.

#. To scale ceph-storage service:

    Deployment should have at least 3 ceph-storage nodes.

{'fraction_non_alphanumeric': 0.10487916096671226, 'fraction_numerical': 0.005015959872321021, 'mean_word_length': 3.668085106382979, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7214498', 'n_tokens_mistral': 651, 'n_tokens_neox': 600, 'n_words': 242}