Skip to content

Commit

Permalink
Add solr docs (#715)
Browse files Browse the repository at this point in the history
* Add clustering and update concept

Signed-off-by: pritamdas99 <[email protected]>
  • Loading branch information
pritamdas99 authored Dec 12, 2024
1 parent 8017522 commit b5bf2c4
Show file tree
Hide file tree
Showing 112 changed files with 13,525 additions and 17 deletions.
18 changes: 18 additions & 0 deletions docs/examples/solr/autoscaler/combined.yaml
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 docs/examples/solr/autoscaler/compute/combined-scaler.yaml
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 docs/examples/solr/autoscaler/compute/topology-scaler.yaml
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 docs/examples/solr/autoscaler/storage/combined-scaler.yaml
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 docs/examples/solr/autoscaler/storage/topoology-scaler.yaml
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
37 changes: 37 additions & 0 deletions docs/examples/solr/autoscaler/topology.yaml
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
17 changes: 17 additions & 0 deletions docs/examples/solr/configuration/sl-custom-config.yaml
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 docs/examples/solr/configuration/sl-custom-nodeselector.yaml
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 docs/examples/solr/configuration/sl-custom-podtemplate.yaml
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
20 changes: 20 additions & 0 deletions docs/examples/solr/configuration/solr-combined.yaml
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 docs/examples/solr/configuration/solr-with-tolerations.yaml
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 docs/examples/solr/configuration/solr-without-toleration.yaml
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
23 changes: 23 additions & 0 deletions docs/examples/solr/monitoring/solr-builtin.yaml
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
29 changes: 29 additions & 0 deletions docs/examples/solr/monitoring/solr-operator.yaml
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
Loading

0 comments on commit b5bf2c4

Please sign in to comment.