OpenAI and Speech-to-Text blocks hang when running STT workflow in `dify-plugin-daemon` on Kubernetes

オープン
#231 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
30/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
go, kubernetes
領域
backend, devops

調査の方向性

レポートに記載された Kubernetes デプロイメントと STT ワークフローから始め、その後、dify-plugin-daemon が OpenAI と STT の同時実行をどのように処理しているかを調査します。完了条件は、ハングと CPU ボトルネックを特定し、再現可能な修正、またはデプロイメントや同時実行に関する推奨事項を文書化することです。

索引モデルが issue の本文から書いたものです。

説明

plugin-daemon

Environment

  • Deployment: Kubernetes
  • Runtime Version: 0.0.7-local

Problem Description

We are encountering an issue where OpenAI blocks become unresponsive when a workflow involving the Speech-to-Text (STT) block is executed. Additionally, the workflow containing the STT block itself hangs indefinitely and does not return any results.

Observations

  • When the STT workflow is running, all concurrent or subsequent OpenAI block executions appear to be blocked.
  • Pod metrics indicate that the relevant process within the dify-plugin-daemon pod consumes 1 full CPU core during this state.
  • This behavior leads us to suspect that the daemon might be single-threaded or facing a bottleneck related to concurrent processing, particularly when handling STT operations.

Questions

  1. Is there a known issue or potential reason why the Speech-to-Text (STT) block would cause other OpenAI blocks to hang and fail to complete itself?
  2. What are the recommended practices or configurations for deploying and managing the dify-plugin-daemon on Kubernetes, potentially including considerations for scaling or concurrency to handle workloads like STT?

Thank you for your support.

主要言語
Go
スター
462
フォーク
326
平均マージ
22時間 15分
マージ済み PR(30日)
8

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

langgenius/dify-plugin-daemon のほかの issue

langgenius/dify-plugin-daemon の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。