-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
api/vmcluster: introduce
requestsLoadBalancer
option
It allows to properly load-balance clients requests to the vmselect and vminsert componets. And utilise CPU usage evenly. It create additional services and update exist vminsert and vmselect service to point to the vmauth deployment. vmauth deployment uses unauthorized config and vmauth srv service-discovery mechanism for pod discovery. Operator also applies all user defined service modification to the internal services. An addiional note, it's required to update multi-level clusters setup. Since cluster related ports will be only exposed at internal services. Since vmauth cannot route tcp requests. related issue: #1130 Signed-off-by: f41gh7 <[email protected]>
- Loading branch information
Showing
18 changed files
with
6,085 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
config/crd/patches/operator.victoriametrics.com_vmclusters.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
apiVersion: operator.victoriametrics.com/v1beta1 | ||
kind: VMCluster | ||
metadata: | ||
name: with-balanacer | ||
spec: | ||
retentionPeriod: "4" | ||
replicationFactor: 1 | ||
requestsLoadBalancer: | ||
enabled: true | ||
spec: | ||
replicaCount: 2 | ||
resources: | ||
limits: | ||
cpu: "0.5" | ||
memory: "512Mi" | ||
requests: | ||
cpu: "0.2" | ||
memory: "256Mi" | ||
|
||
vmstorage: | ||
replicaCount: 2 | ||
storageDataPath: "/vm-data" | ||
storage: | ||
volumeClaimTemplate: | ||
spec: | ||
resources: | ||
requests: | ||
storage: 10Gi | ||
resources: | ||
limits: | ||
cpu: "1" | ||
memory: 1500Mi | ||
vmselect: | ||
replicaCount: 2 | ||
resources: | ||
limits: | ||
cpu: "1" | ||
memory: "1000Mi" | ||
requests: | ||
cpu: "0.5" | ||
memory: "500Mi" | ||
vminsert: | ||
replicaCount: 2 | ||
resources: | ||
limits: | ||
cpu: "1" | ||
memory: 1000Mi | ||
requests: | ||
cpu: "0.5" | ||
memory: "500Mi" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.