Skip to content
Snippets Groups Projects
Commit 2261ed8a6f24 authored by Sami Hiltunen's avatar Sami Hiltunen
Browse files

Add Praefect's default replication factor configuration option

This commit adds Praefect's recently added default replication factor
configuration option in to the config template.
parent 6a1ce1f2e82e
No related branches found
No related tags found
1 merge request!26GitLab 13.9
---
title: Add default replication factor configuration option to Praefect
merge_request: 4988
author:
type: added
......@@ -2099,6 +2099,7 @@
# praefect['logging_format'] = "json"
# praefect['virtual_storages'] = {
# 'default' => {
# 'default_replication_factor' => 3,
# 'nodes' => {
# 'praefect-internal-0' => {
# 'address' => 'tcp://10.23.56.78:8075',
......
......@@ -63,6 +63,9 @@
<% @virtual_storages.each do |name, config| %>
[[virtual_storage]]
name = '<%= name %>'
<% if config['default_replication_factor'] %>
default_replication_factor = <%= config['default_replication_factor'] %>
<% end %>
<% config['nodes'].each do |storage, node| %>
[[virtual_storage.node]]
storage = '<%= storage %>'
......
......@@ -92,6 +92,7 @@
let(:virtual_storages) do
{
'default' => {
'default_replication_factor' => 2,
'nodes' => {
'praefect1' => { address: 'tcp://node1.internal', token: "praefect1-token" },
'praefect2' => { address: 'tcp://node2.internal', token: "praefect2-token" },
......@@ -205,6 +206,7 @@
'virtual_storage' => [
{
'name' => 'default',
'default_replication_factor' => 2,
'node' => [
{
'address' => 'tcp://node1.internal',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment