界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
部署与运维 · SKILL.md

orchestration-and-deployment

orchestration-and-deployment

【部署与运维】Build and route Jina Flow and Gateway topologies, multi-Executor deployments, readiness checks, and export commands.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: orchestration-and-deployment description: "Build and route Jina Flow and Gateway topologies, multi-Executor deployments, readiness checks, and export commands." disable-model-invocation: true metadata: disco-role: operating license: Apache 2.0

Orchestration and Deployment

Use this sub-skill when a task involves Flow, multiple Deployments, Gateway configuration, replicas/shards, YAML topologies, readiness/profiling, or static exports to Docker Compose/Kubernetes/schema artifacts.

Read first

Quick example

from jina import Flow, Executor, requests
from docarray import BaseDoc, DocList

class InputDoc(BaseDoc):
    text: str = ""

class EchoExecutor(Executor):
    @requests(on="/echo")
    def echo(self, docs: DocList[InputDoc], **kwargs) -> DocList[InputDoc]:
        for doc in docs:
            doc.text = f"echo:{doc.text}"
        return docs

flow = Flow(protocol="grpc", port=12345).add(uses=EchoExecutor)
with flow:
    flow.block()

Boundaries

我的收藏