From 2d9e24918060307bda927c6f9fb47a846f38f641 Mon Sep 17 00:00:00 2001
From: Shriram Rajagopalan
Date: Mon, 5 Feb 2018 16:38:26 -0500
Subject: [PATCH 1/2] cluster configuration
---
mixer/v1/config/client/client_config.pb.go | 199 +++++++++++++-----
mixer/v1/config/client/client_config.proto | 11 +
.../istio.mixer.v1.config.client.pb.html | 21 ++
3 files changed, 177 insertions(+), 54 deletions(-)
diff --git a/mixer/v1/config/client/client_config.pb.go b/mixer/v1/config/client/client_config.pb.go
index d8ea6a3332..d312eed805 100644
--- a/mixer/v1/config/client/client_config.pb.go
+++ b/mixer/v1/config/client/client_config.pb.go
@@ -79,6 +79,15 @@ type TransportConfig struct {
// Specify refresh interval to write mixer client statistics to Envoy share
// memory. If not specified, the interval is 10 seconds.
StatsUpdateInterval *google_protobuf1.Duration `protobuf:"bytes,5,opt,name=stats_update_interval,json=statsUpdateInterval" json:"stats_update_interval,omitempty"`
+ // Name of the cluster that will forward check calls to a pool of mixer
+ // servers. Defaults to "mixer_server".
+ CheckCluster string `protobuf:"bytes,6,opt,name=check_cluster,json=checkCluster,proto3" json:"check_cluster,omitempty"`
+ // Name of the cluster that will forward report calls to a pool of mixer
+ // servers. Defaults to "mixer_server". By using different names for
+ // checkCluster and reportCluster, it is possible to have one set of
+ // mixer servers handle check calls, while another set of mixer servers
+ // handle report calls.
+ ReportCluster string `protobuf:"bytes,7,opt,name=report_cluster,json=reportCluster,proto3" json:"report_cluster,omitempty"`
}
func (m *TransportConfig) Reset() { *m = TransportConfig{} }
@@ -290,6 +299,18 @@ func (m *TransportConfig) MarshalTo(dAtA []byte) (int, error) {
}
i += n3
}
+ if len(m.CheckCluster) > 0 {
+ dAtA[i] = 0x32
+ i++
+ i = encodeVarintClientConfig(dAtA, i, uint64(len(m.CheckCluster)))
+ i += copy(dAtA[i:], m.CheckCluster)
+ }
+ if len(m.ReportCluster) > 0 {
+ dAtA[i] = 0x3a
+ i++
+ i = encodeVarintClientConfig(dAtA, i, uint64(len(m.ReportCluster)))
+ i += copy(dAtA[i:], m.ReportCluster)
+ }
return i, nil
}
@@ -513,6 +534,14 @@ func (m *TransportConfig) Size() (n int) {
l = m.StatsUpdateInterval.Size()
n += 1 + l + sovClientConfig(uint64(l))
}
+ l = len(m.CheckCluster)
+ if l > 0 {
+ n += 1 + l + sovClientConfig(uint64(l))
+ }
+ l = len(m.ReportCluster)
+ if l > 0 {
+ n += 1 + l + sovClientConfig(uint64(l))
+ }
return n
}
@@ -617,6 +646,8 @@ func (this *TransportConfig) String() string {
`DisableReportBatch:` + fmt.Sprintf("%v", this.DisableReportBatch) + `,`,
`NetworkFailPolicy:` + fmt.Sprintf("%v", this.NetworkFailPolicy) + `,`,
`StatsUpdateInterval:` + strings.Replace(fmt.Sprintf("%v", this.StatsUpdateInterval), "Duration", "google_protobuf1.Duration", 1) + `,`,
+ `CheckCluster:` + fmt.Sprintf("%v", this.CheckCluster) + `,`,
+ `ReportCluster:` + fmt.Sprintf("%v", this.ReportCluster) + `,`,
`}`,
}, "")
return s
@@ -1027,6 +1058,64 @@ func (m *TransportConfig) Unmarshal(dAtA []byte) error {
return err
}
iNdEx = postIndex
+ case 6:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field CheckCluster", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowClientConfig
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= (uint64(b) & 0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthClientConfig
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.CheckCluster = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 7:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ReportCluster", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowClientConfig
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= (uint64(b) & 0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthClientConfig
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ReportCluster = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipClientConfig(dAtA[iNdEx:])
@@ -1681,58 +1770,60 @@ func init() {
}
var fileDescriptorClientConfig = []byte{
- // 836 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0x4f, 0x8f, 0x22, 0x45,
- 0x14, 0xef, 0x1e, 0x98, 0x89, 0x14, 0x99, 0x01, 0x8a, 0xdd, 0x84, 0x41, 0xd3, 0x41, 0x8c, 0x11,
- 0x35, 0x36, 0x2e, 0x5e, 0x8c, 0x89, 0x1a, 0x60, 0x99, 0x2c, 0x71, 0xff, 0x60, 0xcf, 0xcc, 0x45,
- 0x0f, 0x9d, 0xa2, 0xba, 0xa0, 0x2b, 0xb4, 0x55, 0xbd, 0xdd, 0xd5, 0xac, 0x73, 0xf3, 0x13, 0x18,
- 0x6f, 0x7e, 0x85, 0xfd, 0x12, 0xde, 0xf7, 0xb8, 0x47, 0x8f, 0x82, 0x17, 0x8f, 0xfb, 0x11, 0x4c,
- 0x57, 0x15, 0xb0, 0x30, 0xc0, 0x84, 0xc3, 0x9e, 0xa0, 0xdf, 0xfb, 0xfd, 0x7e, 0x55, 0xef, 0xbd,
- 0xfa, 0x55, 0x81, 0xcf, 0x7e, 0xa1,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mixer/v1/config/client/client_config.proto
index f5dd514506..5e06b65823 100644
--- a/mixer/v1/config/client/client_config.proto
+++ b/mixer/v1/config/client/client_config.proto
@@ -79,6 +79,17 @@ message TransportConfig {
// Specify refresh interval to write mixer client statistics to Envoy share
// memory. If not specified, the interval is 10 seconds.
google.protobuf.Duration stats_update_interval = 5;
+
+ // Name of the cluster that will forward check calls to a pool of mixer
+ // servers. Defaults to "mixer_server".
+ string check_cluster = 6;
+
+ // Name of the cluster that will forward report calls to a pool of mixer
+ // servers. Defaults to "mixer_server". By using different names for
+ // checkCluster and reportCluster, it is possible to have one set of
+ // mixer servers handle check calls, while another set of mixer servers
+ // handle report calls.
+ string report_cluster = 7;
}
// Defines the client config for HTTP.
diff --git a/mixer/v1/config/client/istio.mixer.v1.config.client.pb.html b/mixer/v1/config/client/istio.mixer.v1.config.client.pb.html
index 97310d08e4..103753ecbc 100644
--- a/mixer/v1/config/client/istio.mixer.v1.config.client.pb.html
+++ b/mixer/v1/config/client/istio.mixer.v1.config.client.pb.html
@@ -1150,6 +1150,27 @@ TransportConfig
Specify refresh interval to write mixer client statistics to Envoy share
memory. If not specified, the interval is 10 seconds.
+
+
+
+checkCluster |
+string |
+
+ Name of the cluster that will forward check calls to a pool of mixer
+servers. Defaults to “mixer_server”.
+
+ |
+
+
+reportCluster |
+string |
+
+ Name of the cluster that will forward report calls to a pool of mixer
+servers. Defaults to “mixer_server”. By using different names for
+checkCluster and reportCluster, it is possible to have one set of
+mixer servers handle check calls, while another set of mixer servers
+handle report calls.
+
|
From fbbae367254b175aa9965401c429e7f3b22b6780 Mon Sep 17 00:00:00 2001
From: Shriram Rajagopalan
Date: Mon, 5 Feb 2018 18:31:40 -0500
Subject: [PATCH 2/2] nits
---
mixer/v1/config/client/client_config.pb.go | 11 ++++++++++-
mixer/v1/config/client/client_config.proto | 11 ++++++++++-
.../client/istio.mixer.v1.config.client.pb.html | 11 ++++++++++-
3 files changed, 30 insertions(+), 3 deletions(-)
diff --git a/mixer/v1/config/client/client_config.pb.go b/mixer/v1/config/client/client_config.pb.go
index d312eed805..68cdb50db4 100644
--- a/mixer/v1/config/client/client_config.pb.go
+++ b/mixer/v1/config/client/client_config.pb.go
@@ -80,13 +80,22 @@ type TransportConfig struct {
// memory. If not specified, the interval is 10 seconds.
StatsUpdateInterval *google_protobuf1.Duration `protobuf:"bytes,5,opt,name=stats_update_interval,json=statsUpdateInterval" json:"stats_update_interval,omitempty"`
// Name of the cluster that will forward check calls to a pool of mixer
- // servers. Defaults to "mixer_server".
+ // servers. Defaults to "mixer_server". By using different names for
+ // checkCluster and reportCluster, it is possible to have one set of
+ // mixer servers handle check calls, while another set of mixer servers
+ // handle report calls.
+ //
+ // NOTE: Any value other than the default "mixer_server" will require the
+ // Istio Grafana dashboards to be reconfigured to use the new name.
CheckCluster string `protobuf:"bytes,6,opt,name=check_cluster,json=checkCluster,proto3" json:"check_cluster,omitempty"`
// Name of the cluster that will forward report calls to a pool of mixer
// servers. Defaults to "mixer_server". By using different names for
// checkCluster and reportCluster, it is possible to have one set of
// mixer servers handle check calls, while another set of mixer servers
// handle report calls.
+ //
+ // NOTE: Any value other than the default "mixer_server" will require the
+ // Istio Grafana dashboards to be reconfigured to use the new name.
ReportCluster string `protobuf:"bytes,7,opt,name=report_cluster,json=reportCluster,proto3" json:"report_cluster,omitempty"`
}
diff --git a/mixer/v1/config/client/client_config.proto b/mixer/v1/config/client/client_config.proto
index 5e06b65823..da43b782f0 100644
--- a/mixer/v1/config/client/client_config.proto
+++ b/mixer/v1/config/client/client_config.proto
@@ -81,7 +81,13 @@ message TransportConfig {
google.protobuf.Duration stats_update_interval = 5;
// Name of the cluster that will forward check calls to a pool of mixer
- // servers. Defaults to "mixer_server".
+ // servers. Defaults to "mixer_server". By using different names for
+ // checkCluster and reportCluster, it is possible to have one set of
+ // mixer servers handle check calls, while another set of mixer servers
+ // handle report calls.
+ //
+ // NOTE: Any value other than the default "mixer_server" will require the
+ // Istio Grafana dashboards to be reconfigured to use the new name.
string check_cluster = 6;
// Name of the cluster that will forward report calls to a pool of mixer
@@ -89,6 +95,9 @@ message TransportConfig {
// checkCluster and reportCluster, it is possible to have one set of
// mixer servers handle check calls, while another set of mixer servers
// handle report calls.
+ //
+ // NOTE: Any value other than the default "mixer_server" will require the
+ // Istio Grafana dashboards to be reconfigured to use the new name.
string report_cluster = 7;
}
diff --git a/mixer/v1/config/client/istio.mixer.v1.config.client.pb.html b/mixer/v1/config/client/istio.mixer.v1.config.client.pb.html
index 103753ecbc..02ba599608 100644
--- a/mixer/v1/config/client/istio.mixer.v1.config.client.pb.html
+++ b/mixer/v1/config/client/istio.mixer.v1.config.client.pb.html
@@ -1157,7 +1157,13 @@ TransportConfig
string |
Name of the cluster that will forward check calls to a pool of mixer
-servers. Defaults to “mixer_server”.
+servers. Defaults to “mixer_server”. By using different names for
+checkCluster and reportCluster, it is possible to have one set of
+mixer servers handle check calls, while another set of mixer servers
+handle report calls.
+
+NOTE: Any value other than the default “mixer_server” will require the
+Istio Grafana dashboards to be reconfigured to use the new name.
|
@@ -1171,6 +1177,9 @@ TransportConfig
mixer servers handle check calls, while another set of mixer servers
handle report calls.
+NOTE: Any value other than the default “mixer_server” will require the
+Istio Grafana dashboards to be reconfigured to use the new name.
+