-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add clustering and update concept Signed-off-by: pritamdas99 <[email protected]>
- Loading branch information
1 parent
8017522
commit b5bf2c4
Showing
112 changed files
with
13,525 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apiVersion: kubedb.com/v1alpha2 | ||
kind: Solr | ||
metadata: | ||
name: solr-combined | ||
namespace: demo | ||
spec: | ||
version: 9.6.1 | ||
replicas: 2 | ||
zookeeperRef: | ||
name: zoo | ||
namespace: demo | ||
storage: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 1Gi | ||
storageClassName: longhorn |
24 changes: 24 additions & 0 deletions
24
docs/examples/solr/autoscaler/compute/combined-scaler.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
apiVersion: autoscaling.kubedb.com/v1alpha1 | ||
kind: SolrAutoscaler | ||
metadata: | ||
name: sl-node-autoscaler | ||
namespace: demo | ||
spec: | ||
databaseRef: | ||
name: solr-combined | ||
opsRequestOptions: | ||
timeout: 5m | ||
apply: IfReady | ||
compute: | ||
node: | ||
trigger: "On" | ||
podLifeTimeThreshold: 5m | ||
resourceDiffPercentage: 5 | ||
minAllowed: | ||
cpu: 1 | ||
memory: 2Gi | ||
maxAllowed: | ||
cpu: 2 | ||
memory: 3Gi | ||
controlledResources: ["cpu", "memory"] | ||
containerControlledValues: "RequestsAndLimits" |
24 changes: 24 additions & 0 deletions
24
docs/examples/solr/autoscaler/compute/topology-scaler.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
apiVersion: autoscaling.kubedb.com/v1alpha1 | ||
kind: SolrAutoscaler | ||
metadata: | ||
name: sl-data-autoscaler | ||
namespace: demo | ||
spec: | ||
databaseRef: | ||
name: solr-cluster | ||
opsRequestOptions: | ||
timeout: 5m | ||
apply: IfReady | ||
compute: | ||
data: | ||
trigger: "On" | ||
podLifeTimeThreshold: 5m | ||
resourceDiffPercentage: 5 | ||
minAllowed: | ||
cpu: 1 | ||
memory: 2.5Gi | ||
maxAllowed: | ||
cpu: 2 | ||
memory: 3Gi | ||
controlledResources: ["cpu", "memory"] | ||
containerControlledValues: "RequestsAndLimits" |
14 changes: 14 additions & 0 deletions
14
docs/examples/solr/autoscaler/storage/combined-scaler.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: autoscaling.kubedb.com/v1alpha1 | ||
kind: SolrAutoscaler | ||
metadata: | ||
name: sl-storage-autoscaler-combined | ||
namespace: demo | ||
spec: | ||
databaseRef: | ||
name: solr-combined | ||
storage: | ||
node: | ||
expansionMode: "Offline" | ||
trigger: "On" | ||
usageThreshold: 60 | ||
scalingThreshold: 100 |
14 changes: 14 additions & 0 deletions
14
docs/examples/solr/autoscaler/storage/topoology-scaler.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: autoscaling.kubedb.com/v1alpha1 | ||
kind: SolrAutoscaler | ||
metadata: | ||
name: sl-storage-autoscaler-topology | ||
namespace: demo | ||
spec: | ||
databaseRef: | ||
name: solr-cluster | ||
storage: | ||
data: | ||
expansionMode: "Offline" | ||
trigger: "On" | ||
usageThreshold: 60 | ||
scalingThreshold: 100 |
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,37 @@ | ||
apiVersion: kubedb.com/v1alpha2 | ||
kind: Solr | ||
metadata: | ||
name: solr-cluster | ||
namespace: demo | ||
spec: | ||
version: 9.6.1 | ||
zookeeperRef: | ||
name: zoo | ||
namespace: demo | ||
topology: | ||
overseer: | ||
replicas: 1 | ||
storage: | ||
storageClassName: longhorn | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 1Gi | ||
data: | ||
replicas: 1 | ||
storage: | ||
storageClassName: longhorn | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 1Gi | ||
coordinator: | ||
storage: | ||
storageClassName: longhorn | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 1Gi |
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,17 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: sl-custom-config | ||
namespace: demo | ||
stringData: | ||
"solr.xml": | | ||
<solr> | ||
<int name="maxBooleanClauses">${solr.max.booleanClauses:2024}</int> | ||
<backup> | ||
<repository name="kubedb-proxy-s3" class="org.apache.solr.s3.S3BackupRepository"> | ||
<str name="s3.bucket.name">solrbackup</str> | ||
<str name="s3.region">us-east-1</str> | ||
<str name="s3.endpoint">http://s3proxy-s3.demo.svc:80</str> | ||
</repository> | ||
</backup> | ||
</solr> |
21 changes: 21 additions & 0 deletions
21
docs/examples/solr/configuration/sl-custom-nodeselector.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
apiVersion: kubedb.com/v1alpha2 | ||
kind: Solr | ||
metadata: | ||
name: solr-custom-nodeselector | ||
namespace: demo | ||
spec: | ||
version: 9.6.1 | ||
replicas: 2 | ||
podTemplate: | ||
spec: | ||
nodeSelector: | ||
topology.gke.io/zone: us-central1-b | ||
zookeeperRef: | ||
name: zoo | ||
namespace: demo | ||
storage: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 1Gi |
68 changes: 68 additions & 0 deletions
68
docs/examples/solr/configuration/sl-custom-podtemplate.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
apiVersion: kubedb.com/v1alpha2 | ||
kind: Solr | ||
metadata: | ||
name: solr-misc-config | ||
namespace: demo | ||
spec: | ||
version: "9.6.1" | ||
zookeeperRef: | ||
name: zoo | ||
namespace: demo | ||
topology: | ||
data: | ||
replicas: 1 | ||
podTemplate: | ||
spec: | ||
containers: | ||
- name: "solr" | ||
resources: | ||
requests: | ||
cpu: "900m" | ||
limits: | ||
cpu: "900m" | ||
memory: "2.5Gi" | ||
storage: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 1Gi | ||
storageClassName: standard | ||
overseer: | ||
replicas: 1 | ||
podTemplate: | ||
spec: | ||
containers: | ||
- name: "solr" | ||
resources: | ||
requests: | ||
cpu: "900m" | ||
limits: | ||
cpu: "900m" | ||
memory: "2.5Gi" | ||
storage: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 1Gi | ||
storageClassName: standard | ||
coordinator: | ||
replicas: 1 | ||
podTemplate: | ||
spec: | ||
containers: | ||
- name: "solr" | ||
resources: | ||
requests: | ||
cpu: "900m" | ||
limits: | ||
cpu: "900m" | ||
memory: "2.5Gi" | ||
storage: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 1Gi | ||
storageClassName: standard |
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,20 @@ | ||
apiVersion: kubedb.com/v1alpha2 | ||
kind: Solr | ||
metadata: | ||
name: solr | ||
namespace: demo | ||
spec: | ||
configSecret: | ||
name: sl-combined-custom-config | ||
version: 9.6.1 | ||
replicas: 2 | ||
zookeeperRef: | ||
name: zoo | ||
namespace: demo | ||
storage: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 1Gi | ||
storageClassName: longhorn |
28 changes: 28 additions & 0 deletions
28
docs/examples/solr/configuration/solr-with-tolerations.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
apiVersion: kubedb.com/v1alpha2 | ||
kind: Solr | ||
metadata: | ||
name: solr-with-toleration | ||
namespace: demo | ||
spec: | ||
version: 9.6.1 | ||
replicas: 2 | ||
podTemplate: | ||
spec: | ||
tolerations: | ||
- key: "key1" | ||
operator: "Equal" | ||
value: "node7" | ||
effect: "NoSchedule" | ||
- key: "key1" | ||
operator: "Equal" | ||
value: "node8" | ||
effect: "NoSchedule" | ||
zookeeperRef: | ||
name: zoo | ||
namespace: demo | ||
storage: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 1Gi |
17 changes: 17 additions & 0 deletions
17
docs/examples/solr/configuration/solr-without-toleration.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: kubedb.com/v1alpha2 | ||
kind: Solr | ||
metadata: | ||
name: solr-without-toleration | ||
namespace: demo | ||
spec: | ||
version: 9.6.1 | ||
replicas: 2 | ||
zookeeperRef: | ||
name: zoo | ||
namespace: demo | ||
storage: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 1Gi |
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,23 @@ | ||
apiVersion: kubedb.com/v1alpha2 | ||
kind: Solr | ||
metadata: | ||
name: builtin-prom-sl | ||
namespace: demo | ||
spec: | ||
version: 9.6.1 | ||
replicas: 2 | ||
enableSSL: true | ||
monitor: | ||
agent: prometheus.io/builtin | ||
solrModules: | ||
- prometheus-exporter | ||
zookeeperRef: | ||
name: zoo | ||
namespace: demo | ||
storage: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 1Gi | ||
storageClassName: standard |
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,29 @@ | ||
apiVersion: kubedb.com/v1alpha2 | ||
kind: Solr | ||
metadata: | ||
name: operator-prom-sl | ||
namespace: demo | ||
spec: | ||
version: 9.6.1 | ||
replicas: 2 | ||
monitor: | ||
agent: prometheus.io/operator | ||
prometheus: | ||
serviceMonitor: | ||
labels: | ||
release: prometheus | ||
interval: 10s | ||
solrModules: | ||
- s3-repository | ||
- gcs-repository | ||
- prometheus-exporter | ||
zookeeperRef: | ||
name: zoo | ||
namespace: demo | ||
storage: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 1Gi | ||
storageClassName: standard |
Oops, something went wrong.