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:
parent
d201f5cf56
commit
4e0cfb19cd
|
@ -37,8 +37,9 @@ openstack::ha::haproxy_service { 'influxdb':
|
||||||
balancermember_port => $influxdb_port,
|
balancermember_port => $influxdb_port,
|
||||||
ipaddresses => $influxdb_nodes_ips,
|
ipaddresses => $influxdb_nodes_ips,
|
||||||
server_names => $influxdb_nodes_names,
|
server_names => $influxdb_nodes_names,
|
||||||
|
define_backups => true,
|
||||||
haproxy_config_options => {
|
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',
|
'http-check' => 'expect status 204',
|
||||||
'balance' => 'roundrobin',
|
'balance' => 'roundrobin',
|
||||||
'mode' => 'http',
|
'mode' => 'http',
|
||||||
|
|
|
@ -66,7 +66,6 @@ class { 'lma_monitoring_analytics::influxdb':
|
||||||
base_directory => $data_directory,
|
base_directory => $data_directory,
|
||||||
wal_dir => $wal_dir,
|
wal_dir => $wal_dir,
|
||||||
hostname => hiera('lma::influxdb::listen_address'),
|
hostname => hiera('lma::influxdb::listen_address'),
|
||||||
raft_nodes => $raft_nodes,
|
version => '1.1.1-1',
|
||||||
version => '0.11.1-1',
|
|
||||||
require => File[$data_directory],
|
require => File[$data_directory],
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
- influxdb-cluster-haproxy
|
- influxdb-cluster-haproxy
|
||||||
- influxdb-vip
|
- influxdb-vip
|
||||||
- influxdb-haproxy
|
- influxdb-haproxy
|
||||||
- primary-influxdb-installation
|
- influxdb-installation
|
||||||
requires: [deploy_start]
|
requires: [deploy_start]
|
||||||
required_for: [deploy_end]
|
required_for: [deploy_end]
|
||||||
parameters:
|
parameters:
|
||||||
|
@ -37,7 +37,6 @@
|
||||||
- tools
|
- tools
|
||||||
- logging
|
- logging
|
||||||
- influxdb-netconfig
|
- influxdb-netconfig
|
||||||
- hosts
|
|
||||||
- influxdb-hiera
|
- influxdb-hiera
|
||||||
- influxdb-firewall
|
- influxdb-firewall
|
||||||
- influxdb-cluster
|
- influxdb-cluster
|
||||||
|
@ -163,7 +162,7 @@
|
||||||
reexecute_on:
|
reexecute_on:
|
||||||
- deploy_changes
|
- deploy_changes
|
||||||
|
|
||||||
- id: primary-influxdb-installation
|
- id: influxdb-installation
|
||||||
type: puppet
|
type: puppet
|
||||||
version: 2.0.0
|
version: 2.0.0
|
||||||
requires: [influxdb-haproxy]
|
requires: [influxdb-haproxy]
|
||||||
|
@ -173,22 +172,6 @@
|
||||||
puppet_modules: puppet/modules:/etc/puppet/modules
|
puppet_modules: puppet/modules:/etc/puppet/modules
|
||||||
timeout: 600
|
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
|
# Tasks definitions for the post-deployment
|
||||||
###########################################
|
###########################################
|
||||||
|
|
||||||
|
@ -245,7 +228,7 @@
|
||||||
- id: influxdb-configuration
|
- id: influxdb-configuration
|
||||||
type: puppet
|
type: puppet
|
||||||
version: 2.0.0
|
version: 2.0.0
|
||||||
role: [primary-influxdb_grafana]
|
role: [primary-influxdb_grafana, influxdb_grafana]
|
||||||
requires: [post_deployment_start]
|
requires: [post_deployment_start]
|
||||||
# We use upload_nodes_info as an anchor to order the post-deployment tasks executed
|
# 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:
|
# by this plugin and the LMA collector plugin. The dependency chain is:
|
||||||
|
|
|
@ -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"
|
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"
|
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 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
|
download_package http://mirrors.kernel.org/ubuntu/pool/main/s/systemd-shim/systemd-shim_6-2bzr1_amd64.deb
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue