14bf524756
This commit is to apply resource-constraints to a few more OpenStack services. Commit to apply constraints to the last set of services will be made in the upcoming commit. Depends-on: Icafa54baca24d2de64238222a5677b9d8b90e2aa Change-Id: I39004f54281f97d53dfa4b1dbcf248650ad6f186
34 lines
1.2 KiB
YAML
34 lines
1.2 KiB
YAML
---
|
|
kafka_services:
|
|
kafka:
|
|
container_name: kafka
|
|
group: kafka
|
|
enabled: true
|
|
image: "{{ kafka_image_full }}"
|
|
environment:
|
|
LOG_DIR: "{{ kafka_log_dir }}"
|
|
KAFKA_HEAP_OPTS: "{{ kafka_heap_opts }}"
|
|
volumes:
|
|
- "{{ node_config_directory }}/kafka/:{{ container_config_directory }}/"
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
- "kafka:/var/lib/kafka/data"
|
|
- "kolla_logs:/var/log/kolla/"
|
|
dimensions: "{{ kafka_dimensions }}"
|
|
|
|
####################
|
|
# Kafka
|
|
####################
|
|
kafka_cluster_name: "kolla_kafka"
|
|
kafka_log_dir: "/var/log/kolla/kafka"
|
|
kafka_heap_opts: "-Xmx1G -Xms1G"
|
|
kafka_zookeeper: "{% for host in groups['zookeeper'] %}{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ zookeeper_client_port }}{% if not loop.last %},{% endif %}{% endfor %}"
|
|
|
|
####################
|
|
# Docker
|
|
####################
|
|
kafka_install_type: "{{ kolla_install_type }}"
|
|
kafka_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ kafka_install_type }}-kafka"
|
|
kafka_tag: "{{ openstack_release }}"
|
|
kafka_image_full: "{{ kafka_image }}:{{ kafka_tag }}"
|
|
kafka_dimensions: "{{ default_container_dimensions }}"
|