feat: add FalkorDB, LMDeploy, and Pogocache with configuration files and documentation
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
# Pogocache Version
|
||||
POGOCACHE_VERSION=1.3.1
|
||||
|
||||
# Host port override
|
||||
POGOCACHE_PORT_OVERRIDE=9401
|
||||
|
||||
# Resource limits
|
||||
POGOCACHE_CPU_LIMIT=0.50
|
||||
POGOCACHE_MEMORY_LIMIT=512M
|
||||
POGOCACHE_CPU_RESERVATION=0.10
|
||||
POGOCACHE_MEMORY_RESERVATION=128M
|
||||
|
||||
# Extra arguments for pogocache
|
||||
# Example: --auth mypassword --threads 4
|
||||
POGOCACHE_EXTRA_ARGS=
|
||||
@@ -0,0 +1,35 @@
|
||||
# Pogocache
|
||||
|
||||
[Pogocache](https://github.com/tidwall/pogocache) is fast caching software built from scratch with a focus on low latency and cpu efficiency. It is a high-performance, multi-protocol Redis alternative.
|
||||
|
||||
## Features
|
||||
|
||||
- **Fast**: Faster than Memcached, Valkey, Redis, Dragonfly, and Garnet.
|
||||
- **Multi-protocol**: Supports Redis RESP, Memcached, PostgreSQL wire protocol, and HTTP.
|
||||
- **Persistence**: Supports AOF-style persistence.
|
||||
- **Resource Efficient**: Low CPU and memory overhead.
|
||||
|
||||
## Deployment
|
||||
|
||||
```bash
|
||||
docker compose up -d
|
||||
```
|
||||
|
||||
## Configuration
|
||||
|
||||
| Variable | Default | Description |
|
||||
| ------------------------- | ------- | --------------------------------------------- |
|
||||
| `POGOCACHE_VERSION` | `1.3.1` | Pogocache image version |
|
||||
| `POGOCACHE_PORT_OVERRIDE` | `9401` | Host port for Pogocache |
|
||||
| `POGOCACHE_EXTRA_ARGS` | | Additional CLI arguments (e.g. `--auth pass`) |
|
||||
|
||||
## Accessing Pogocache
|
||||
|
||||
- **Redis**: `redis-cli -p 9401`
|
||||
- **Postgres**: `psql -h localhost -p 9401`
|
||||
- **HTTP**: `curl http://localhost:9401/key`
|
||||
- **Memcached**: `telnet localhost 9401`
|
||||
|
||||
## Persistence
|
||||
|
||||
By default, the data is persisted to a named volume `pogocache_data` at `/data/pogocache.db`.
|
||||
@@ -0,0 +1,35 @@
|
||||
# Pogocache
|
||||
|
||||
[Pogocache](https://github.com/tidwall/pogocache) 是一款从零开始构建的高速缓存软件,专注于低延迟和 CPU 效率。它是一个高性能、多协议的 Redis 替代方案。
|
||||
|
||||
## 特性
|
||||
|
||||
- **极速**:比 Memcached、Valkey、Redis、Dragonfly 和 Garnet 更快。
|
||||
- **多协议支持**:支持 Redis RESP、Memcached、PostgreSQL 线缆协议和 HTTP。
|
||||
- **持久化**:支持 AOF 风格的持久化。
|
||||
- **资源高效**:极低的 CPU 和内存开销。
|
||||
|
||||
## 部署
|
||||
|
||||
```bash
|
||||
docker compose up -d
|
||||
```
|
||||
|
||||
## 配置说明
|
||||
|
||||
| 变量名 | 默认值 | 描述 |
|
||||
| ------------------------- | ------- | -------------------------------------- |
|
||||
| `POGOCACHE_VERSION` | `1.3.1` | Pogocache 镜像版本 |
|
||||
| `POGOCACHE_PORT_OVERRIDE` | `9401` | 主机端口 |
|
||||
| `POGOCACHE_EXTRA_ARGS` | | 额外的命令行参数(例如 `--auth pass`) |
|
||||
|
||||
## 访问方式
|
||||
|
||||
- **Redis**:`redis-cli -p 9401`
|
||||
- **Postgres**:`psql -h localhost -p 9401`
|
||||
- **HTTP**:`curl http://localhost:9401/key`
|
||||
- **Memcached**:`telnet localhost 9401`
|
||||
|
||||
## 持久化
|
||||
|
||||
默认情况下,数据持久化到命名卷 `pogocache_data` 中的 `/data/pogocache.db`。
|
||||
@@ -0,0 +1,42 @@
|
||||
# Docker Compose for Pogocache
|
||||
# Pogocache is fast caching software built from scratch with a focus on low latency and cpu efficiency.
|
||||
# See: https://github.com/tidwall/pogocache
|
||||
|
||||
x-defaults: &defaults
|
||||
restart: unless-stopped
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: 10m
|
||||
max-file: "3"
|
||||
|
||||
services:
|
||||
pogocache:
|
||||
<<: *defaults
|
||||
image: ${GLOBAL_REGISTRY:-}pogocache/pogocache:${POGOCACHE_VERSION:-1.3.1}
|
||||
ports:
|
||||
- "${POGOCACHE_PORT_OVERRIDE:-9401}:9401"
|
||||
environment:
|
||||
- TZ=${TZ:-UTC}
|
||||
volumes:
|
||||
- pogocache_data:/data
|
||||
command: >
|
||||
${POGOCACHE_EXTRA_ARGS:-}
|
||||
--persist /data/pogocache.db
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "nc -z localhost 9401 || exit 1"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
start_period: 5s
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: ${POGOCACHE_CPU_LIMIT:-0.50}
|
||||
memory: ${POGOCACHE_MEMORY_LIMIT:-512M}
|
||||
reservations:
|
||||
cpus: ${POGOCACHE_CPU_RESERVATION:-0.10}
|
||||
memory: ${POGOCACHE_MEMORY_RESERVATION:-128M}
|
||||
|
||||
volumes:
|
||||
pogocache_data:
|
||||
Reference in New Issue
Block a user