最纯粹、最抽象的设计难题就是设计桥梁。你面对的问题是: 如何用最少的材料, 跨越给定的距离。 --保罗.格雷汉姆 (知名黑客 硅谷牛人)
实验目的 🔗
- 创建 easeprobe native client redis probe 配置并运行
- 执行内容
- 检测键
name
的值是 john
- 检测键值不存在的错误信息
- 检测键存在但值不是
john
的错误信息
docker-compose 配置 🔗
version: "3.9"
services:
probe:
image: megaease/easeprobe:v2.0.1
container_name: probe
volumes:
- type: bind
source: ./config.yaml
target: /opt/config.yaml
read_only: true
ports:
- 8181:8181
redis:
image: redis:7
container_name: redis
hostname: redis.somewhere
command: --requirepass "secpass"
easeprobe 配置 config.yaml
🔗
client:
- name: Redis Native Client (somewhere)
driver: "redis"
host: "redis.somewhere:6379"
password: "secpass"
data:
name: john
notify:
log:
- name: notify
file: /var/log/notify.log
settings:
http:
log:
file: /var/log/access.log
log:
level: "debug"
file: /var/log/debug.log
环境 🔗
验证 🔗
视频 🔗
问题 🔗