feat(ente): switch to DragonFly cache
All checks were successful
Renovate / renovate (push) Successful in 1m15s

This commit is contained in:
Peter 2024-09-10 12:15:39 +02:00
parent a2b65de882
commit 11d68db929
Signed by: prskr
GPG key ID: F56BED6903BC5E37
2 changed files with 118 additions and 115 deletions

View file

@ -2,76 +2,79 @@
# HTTP connection parameters # HTTP connection parameters
http: http:
# If true, bind to 443 and use TLS. # If true, bind to 443 and use TLS.
# By default, this is false, and museum will bind to 8080 without TLS. # By default, this is false, and museum will bind to 8080 without TLS.
# use-tls: true # use-tls: true
# Specify the base endpoints for various apps # Specify the base endpoints for various apps
apps: apps:
# Default is https://albums.ente.io # Default is https://albums.ente.io
# #
# If you're running a self hosted instance and wish to serve public links, # If you're running a self hosted instance and wish to serve public links,
# set this to the URL where your albums web app is running. # set this to the URL where your albums web app is running.
public-albums: https://albums.ente.icb4dc0.de public-albums: https://albums.ente.icb4dc0.de
cache:
type: redis
connectionString: redis://ente-musuem-cache:6379/0
# Various low-level configuration options # Various low-level configuration options
internal: internal:
# If false (the default), then museum will notify the external world of # If false (the default), then museum will notify the external world of
# various events. E.g, email users about their storage being full, send # various events. E.g, email users about their storage being full, send
# alerts to Discord, etc. # alerts to Discord, etc.
# #
# It can be set to true when running a "read only" instance like a backup # It can be set to true when running a "read only" instance like a backup
# restoration test, where we want to be able to access data but otherwise # restoration test, where we want to be able to access data but otherwise
# minimize external side effects. # minimize external side effects.
silent: false silent: false
# If provided, this external healthcheck url is periodically pinged. # If provided, this external healthcheck url is periodically pinged.
health-check-url: health-check-url:
# Hardcoded verification codes, useful for logging in when developing. # Hardcoded verification codes, useful for logging in when developing.
# #
# Uncomment this and set these to your email ID or domain so that you don't # Uncomment this and set these to your email ID or domain so that you don't
# need to peek into the server logs for obtaining the OTP when trying to log # need to peek into the server logs for obtaining the OTP when trying to log
# into an instance you're developing on. # into an instance you're developing on.
# hardcoded-ott: # hardcoded-ott:
# emails: # emails:
# - "example@example.org,123456" # - "example@example.org,123456"
# # When running in a local environment, hardcode the verification code to # # When running in a local environment, hardcode the verification code to
# # 123456 for email addresses ending with @example.org # # 123456 for email addresses ending with @example.org
# local-domain-suffix: "@example.org" # local-domain-suffix: "@example.org"
# local-domain-value: 123456 # local-domain-value: 123456
# List of user IDs that can use the admin API endpoints. # List of user IDs that can use the admin API endpoints.
admins: admins:
- 1580559962386438 - 1580559962386438
# Replication config # Replication config
# #
# If enabled, replicate each file to 2 other data centers after it gets # If enabled, replicate each file to 2 other data centers after it gets
# successfully uploaded to the primary hot storage. # successfully uploaded to the primary hot storage.
replication: replication:
enabled: false enabled: false
# The Cloudflare worker to use to download files from the primary hot # The Cloudflare worker to use to download files from the primary hot
# bucket. Must be specified if replication is enabled. # bucket. Must be specified if replication is enabled.
worker-url: worker-url:
# Number of go routines to spawn for replication # Number of go routines to spawn for replication
# This is not related to the worker-url above. # This is not related to the worker-url above.
# Optional, default value is indicated here. # Optional, default value is indicated here.
worker-count: 6 worker-count: 6
# Where to store temporary objects during replication v3 # Where to store temporary objects during replication v3
# Optional, default value is indicated here. # Optional, default value is indicated here.
tmp-storage: tmp/replication tmp-storage: tmp/replication
# Configuration for various background / cron jobs. # Configuration for various background / cron jobs.
jobs: jobs:
cron: cron:
# Instances run various cleanup, sending emails and other cron jobs. Use # Instances run various cleanup, sending emails and other cron jobs. Use
# this flag to disable all these cron jobs. # this flag to disable all these cron jobs.
skip: false skip: false
remove-unreported-objects: remove-unreported-objects:
# Number of go routines to spawn for object cleanup # Number of go routines to spawn for object cleanup
# Optional, default value is indicated here. # Optional, default value is indicated here.
worker-count: 1 worker-count: 1
clear-orphan-objects: clear-orphan-objects:
# By default, this job is disabled. # By default, this job is disabled.
enabled: false enabled: false
# If provided, only objects that begin with this prefix are pruned. # If provided, only objects that begin with this prefix are pruned.
prefix: "" prefix: ""

View file

@ -3,7 +3,7 @@ kind: Deployment
metadata: metadata:
name: museum name: museum
spec: spec:
replicas: 1 replicas: 2
revisionHistoryLimit: 3 revisionHistoryLimit: 3
selector: selector:
matchLabels: matchLabels:
@ -16,62 +16,62 @@ spec:
app.kubernetes.io/part-of: ente app.kubernetes.io/part-of: ente
spec: spec:
containers: containers:
- name: museum - name: museum
image: museum image: museum
env: env:
- name: ENTE_CREDENTIALS_FILE - name: ENTE_CREDENTIALS_FILE
value: /credentials.yaml value: /credentials.yaml
- name: ENTE_DB_HOST - name: ENTE_DB_HOST
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: ente-db-credentials-ente-ente name: ente-db-credentials-ente-ente
key: HOST key: HOST
- name: ENTE_DB_NAME - name: ENTE_DB_NAME
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: ente-db-credentials-ente-ente name: ente-db-credentials-ente-ente
key: DATABASE_NAME key: DATABASE_NAME
- name: ENTE_DB_USER - name: ENTE_DB_USER
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: ente-db-credentials-ente-ente name: ente-db-credentials-ente-ente
key: LOGIN key: LOGIN
- name: ENTE_DB_PASSWORD - name: ENTE_DB_PASSWORD
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: ente-db-credentials-ente-ente name: ente-db-credentials-ente-ente
key: PASSWORD key: PASSWORD
- name: ENTE_DB_SSLMODE - name: ENTE_DB_SSLMODE
value: require value: require
resources: resources:
requests: requests:
memory: "64Mi" memory: "64Mi"
cpu: "50m" cpu: "50m"
limits: limits:
memory: "128Mi" memory: "128Mi"
cpu: "250m" cpu: "250m"
ports: ports:
- name: api - name: api
containerPort: 8080 containerPort: 8080
- name: metrics - name: metrics
containerPort: 2112 containerPort: 2112
readinessProbe: readinessProbe:
httpGet: httpGet:
path: /ping path: /ping
port: 8080 port: 8080
livenessProbe: livenessProbe:
httpGet: httpGet:
path: /ping path: /ping
port: 8080 port: 8080
volumeMounts: volumeMounts:
- name: logs - name: logs
mountPath: /var/log/ente mountPath: /var/log/ente
- name: config - name: config
mountPath: /museum.yaml mountPath: /museum.yaml
subPath: museum.yaml subPath: museum.yaml
- name: credentials - name: credentials
mountPath: /credentials.yaml mountPath: /credentials.yaml
subPath: credentials.yaml subPath: credentials.yaml
volumes: volumes:
- name: logs - name: logs
emptyDir: {} emptyDir: {}
@ -88,4 +88,4 @@ spec:
- key: credentials.yaml - key: credentials.yaml
path: credentials.yaml path: credentials.yaml
nodeSelector: nodeSelector:
kubernetes.io/arch: arm64 kubernetes.io/arch: arm64