Remove InfluxDB cluster and upgrade to 1.1.1

InfluxDB is deployed and configured on each node but only one instance
receives datapoints at a time while other nodes are used for failover.

DocImpact
Change-Id: Ie0e927f12643951fc3688a321cca6d7225441248
This commit is contained in:
Swann Croiset 2017-01-11 17:51:20 +01:00
parent d201f5cf56
commit 4e0cfb19cd
4 changed files with 7 additions and 24 deletions

View File

@ -37,8 +37,9 @@ openstack::ha::haproxy_service { 'influxdb':
balancermember_port => $influxdb_port,
ipaddresses => $influxdb_nodes_ips,
server_names => $influxdb_nodes_names,
define_backups => true,
haproxy_config_options => {
'option' => ['httpchk GET /ping HTTP/1.1', 'httplog', 'dontlog-normal'],
'option' => ['httpchk GET /ping', 'httplog', 'dontlog-normal'],
'http-check' => 'expect status 204',
'balance' => 'roundrobin',
'mode' => 'http',

View File

@ -66,7 +66,6 @@ class { 'lma_monitoring_analytics::influxdb':
base_directory => $data_directory,
wal_dir => $wal_dir,
hostname => hiera('lma::influxdb::listen_address'),
raft_nodes => $raft_nodes,
version => '0.11.1-1',
version => '1.1.1-1',
require => File[$data_directory],
}

View File

@ -18,7 +18,7 @@
- influxdb-cluster-haproxy
- influxdb-vip
- influxdb-haproxy
- primary-influxdb-installation
- influxdb-installation
requires: [deploy_start]
required_for: [deploy_end]
parameters:
@ -37,7 +37,6 @@
- tools
- logging
- influxdb-netconfig
- hosts
- influxdb-hiera
- influxdb-firewall
- influxdb-cluster
@ -163,7 +162,7 @@
reexecute_on:
- deploy_changes
- id: primary-influxdb-installation
- id: influxdb-installation
type: puppet
version: 2.0.0
requires: [influxdb-haproxy]
@ -173,22 +172,6 @@
puppet_modules: puppet/modules:/etc/puppet/modules
timeout: 600
- id: influxdb-installation
type: puppet
version: 2.0.0
requires: [influxdb-haproxy, primary-influxdb-installation]
required_for: [deploy_end]
# The cross-depends parameter is required because the installation on the
# secondary nodes should only happen once the InfluxDB service has been
# started on the primary.
cross-depends:
- name: primary-influxdb-installation
role: [primary-influxdb_grafana]
parameters:
puppet_manifest: "puppet/manifests/influxdb.pp"
puppet_modules: puppet/modules:/etc/puppet/modules
timeout: 600
# Tasks definitions for the post-deployment
###########################################
@ -245,7 +228,7 @@
- id: influxdb-configuration
type: puppet
version: 2.0.0
role: [primary-influxdb_grafana]
role: [primary-influxdb_grafana, influxdb_grafana]
requires: [post_deployment_start]
# We use upload_nodes_info as an anchor to order the post-deployment tasks executed
# by this plugin and the LMA collector plugin. The dependency chain is:

View File

@ -11,7 +11,7 @@ GRAFANA_TARBALL_URL="https://forgeapi.puppetlabs.com/v3/files/bfraser-grafana-2.
MYSQL_TARBALL_URL="https://forgeapi.puppetlabs.com/v3/files/puppetlabs-mysql-3.6.2.tar.gz"
FIREWALL_TARBALL_URL="https://forgeapi.puppetlabs.com/v3/files/puppetlabs-firewall-1.7.2.tar.gz"
download_package https://s3.amazonaws.com/influxdb/influxdb_0.11.1-1_amd64.deb
download_package https://dl.influxdata.com/influxdb/releases/influxdb_1.1.1_amd64.deb
download_package https://grafanarel.s3.amazonaws.com/builds/grafana_3.0.4-1464167696_amd64.deb
download_package http://mirrors.kernel.org/ubuntu/pool/main/s/systemd-shim/systemd-shim_6-2bzr1_amd64.deb