Rework client cache with internal GRPC Client mechanisms

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

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
go, grpc

調査の方向性

Start by reading the client cache code in pkg/network/cache and the gRPC WithContextDialer mechanism named in the issue. Trace how per-node clients and connections are currently managed, then check how gRPC handles connection reuse and lifecycle for the project's filesystem requirements. Done means the cache uses one client with abstract per-node addresses and the behavior is verified for connection handling.

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

説明

enhancement I4 neofs-storage S2 U3

Is your feature request related to a problem? Please describe.

I'm always frustrated when we have code we could avoid. We're managing sets of clients per-node in pkg/network/cache instead of having a single client using different connections as needed.

Describe the solution you'd like

Push abstract addresses to per-node client, override https://pkg.go.dev/google.golang.org/grpc#WithContextDialer and establish connections there. Let GRPC library handle connections (but check it handles them well, it's very important to FS).

Describe alternatives you've considered

Keep things as is, works too. Some locking can be improved to avoid blocking during network operations.

Additional context

As per @fabwa findings.

主要言語
Go
スター
37
フォーク
56
平均マージ
1日 21時間
マージ済み PR(30日)
46

環境構築

はじめの一歩

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

nspcc-dev/neofs-node のほかの issue

nspcc-dev/neofs-node の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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