+++ /dev/null
-apiVersion: v1
-kind: Service
-metadata:
- labels:
- app: siridb
- name: siridb
-spec:
- clusterIP: None
- publishNotReadyAddresses: true
- ports:
- - name: status
- port: 8080
- - name: client
- port: 9000
- - name: http
- port: 9080
- - name: server
- port: 9010
- selector:
- app: siridb
\ No newline at end of file
+++ /dev/null
-apiVersion: apps/v1
-kind: StatefulSet
-metadata:
- name: siridb
- labels:
- app: siridb
-spec:
- selector:
- matchLabels:
- app: siridb
- serviceName: siridb
- replicas: 2 # Multiple of 2, to create pools with two servers.
- updateStrategy:
- type: RollingUpdate
- podManagementPolicy: Parallel
- template:
- metadata:
- labels:
- app: siridb
- spec:
- terminationGracePeriodSeconds: 120
- dnsConfig:
- searches:
- - siridb.default.svc.cluster.local
- containers:
- - name: siridb
- image: siridb/siridb-server:2.0.40 # Pin to a specific version
- imagePullPolicy: Always
- env:
- - name: SIRIDB_HTTP_STATUS_PORT
- value: "8080"
- - name: SIRIDB_HTTP_API_PORT
- value: "9080"
- - name: SIRIDB_ENABLE_SHARD_COMPRESSION
- value: "1"
- - name: SIRIDB_ENABLE_SHARD_AUTO_DURATION
- value: "1"
- - name: SIRIDB_BUFFER_SYNC_INTERVAL
- value: "500"
- - name: SIRIDB_DEFAULT_DB_PATH
- value: /mnt/siridb/
- - name: SIRIDB_BIND_SERVER_ADDRESS
- value: "0.0.0.0"
- - name: SIRIDB_BIND_CLIENT_ADDRESS
- value: "0.0.0.0"
- - name: SIRIDB_SERVER_NAME
- valueFrom:
- fieldRef:
- fieldPath: metadata.name
- ports:
- - name: status
- containerPort: 8080
- - name: client
- containerPort: 9000
- - name: http
- containerPort: 9080
- - name: server
- containerPort: 9010
- volumeMounts:
- - name: data
- mountPath: /mnt/siridb/
- resources:
- requests:
- memory: 100M # For example, 3Gi for large data sets
- livenessProbe:
- httpGet:
- path: /healthy
- port: 8080
- periodSeconds: 20
- timeoutSeconds: 10
- readinessProbe:
- httpGet:
- path: /ready
- port: 8080
- initialDelaySeconds: 15
- periodSeconds: 20
- timeoutSeconds: 10
- volumeClaimTemplates:
- - metadata:
- name: data
- spec:
- accessModes: ["ReadWriteOnce"]
- resources:
- requests:
- storage: 200Mi # For example, 300Gi for large data sets
+siridb-server (2.0.41-0~tt1) unstable; urgency=medium
+
+ * New upstream release
+ - Fixed bug in insert loop (#147)
+ - Fixed loading databases with duplicated series (#148)
+ - Allow server names without defining a port (#150)
+
+ -- Jeroen van der Heijden <jeroen@transceptor.technology> Wed, 04 Nov 2020 13:15:29 +0100
+
siridb-server (2.0.40-0~tt1) unstable; urgency=medium
* New upstream release
--- /dev/null
+# Running SiriDB in Kubernetes
+
+This folder contains a service and statefulset definition which can be used as example configuration
+for running SiriDB in Kubernetes.
+
--- /dev/null
+apiVersion: v1
+kind: Service
+metadata:
+ labels:
+ app: siridb
+ name: siridb
+spec:
+ clusterIP: None
+ publishNotReadyAddresses: true
+ ports:
+ - name: status
+ port: 8080
+ - name: client
+ port: 9000
+ - name: http
+ port: 9080
+ - name: server
+ port: 9010
+ selector:
+ app: siridb
\ No newline at end of file
--- /dev/null
+apiVersion: apps/v1
+kind: StatefulSet
+metadata:
+ name: siridb
+ labels:
+ app: siridb
+spec:
+ selector:
+ matchLabels:
+ app: siridb
+ serviceName: siridb
+ replicas: 2 # Multiple of 2, to create pools with two servers.
+ updateStrategy:
+ type: RollingUpdate
+ podManagementPolicy: Parallel
+ template:
+ metadata:
+ labels:
+ app: siridb
+ spec:
+ terminationGracePeriodSeconds: 120
+ dnsConfig:
+ searches:
+ - siridb.default.svc.cluster.local
+ containers:
+ - name: siridb
+ image: siridb/siridb-server:2.0.40 # Pin to a specific version
+ imagePullPolicy: Always
+ env:
+ - name: SIRIDB_HTTP_STATUS_PORT
+ value: "8080"
+ - name: SIRIDB_HTTP_API_PORT
+ value: "9080"
+ - name: SIRIDB_ENABLE_SHARD_COMPRESSION
+ value: "1"
+ - name: SIRIDB_ENABLE_SHARD_AUTO_DURATION
+ value: "1"
+ - name: SIRIDB_BUFFER_SYNC_INTERVAL
+ value: "500"
+ - name: SIRIDB_DEFAULT_DB_PATH
+ value: /mnt/siridb/
+ - name: SIRIDB_BIND_SERVER_ADDRESS
+ value: "0.0.0.0"
+ - name: SIRIDB_BIND_CLIENT_ADDRESS
+ value: "0.0.0.0"
+ - name: SIRIDB_SERVER_NAME
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.name
+ ports:
+ - name: status
+ containerPort: 8080
+ - name: client
+ containerPort: 9000
+ - name: http
+ containerPort: 9080
+ - name: server
+ containerPort: 9010
+ volumeMounts:
+ - name: data
+ mountPath: /mnt/siridb/
+ resources:
+ requests:
+ memory: 100M # For example, 3Gi for large data sets
+ livenessProbe:
+ httpGet:
+ path: /healthy
+ port: 8080
+ periodSeconds: 20
+ timeoutSeconds: 10
+ readinessProbe:
+ httpGet:
+ path: /ready
+ port: 8080
+ initialDelaySeconds: 15
+ periodSeconds: 20
+ timeoutSeconds: 10
+ volumeClaimTemplates:
+ - metadata:
+ name: data
+ spec:
+ accessModes: ["ReadWriteOnce"]
+ resources:
+ requests:
+ storage: 200Mi # For example, 300Gi for large data sets
* Note that debian alpha packages should use versions like this:
* 2.0.34-0alpha0
*/
-#define SIRIDB_VERSION_PRE_RELEASE "-alpha-2"
+#define SIRIDB_VERSION_PRE_RELEASE ""
#ifndef NDEBUG
#define SIRIDB_VERSION_BUILD_RELEASE "+debug"
drop series '{0}'
'''.format(series))
- await asyncio.sleep(3.0)
+ await asyncio.sleep(6.0) # groups and tags are updates each 3 seconds
for client in (self.client0, self.client1, self.client2):
res = await self.client0.query('''