加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.rr.yaml 650 Bytes
一键复制 编辑 原始数据 按行查看 历史
lzp 提交于 2021-10-04 12:10 . 补充例子
# http service configuration.
http:
address: 0.0.0.0:8080
workers:
command: "php app.php"
# queue and jobs
jobs:
dispatch:
app-job-*.pipeline: "local"
pipelines:
local:
broker: "ephemeral"
consume: ["local"]
workers:
command: "php app.php"
pool.numWorkers: 2
# serve static files
static:
dir: "public"
forbid: [".php", ".htaccess"]
metrics:
# prometheus client address (path /metrics added automatically)
address: localhost:2112
# control the max memory usage
limit:
services:
http.maxMemory: 100
jobs.maxMemory: 100
# 参考 https://spiral.dev/docs/broadcast-websockets
ws.path: "/ws"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化