librados, osd: add PG-LSH vector placement and routing#9
Open
ppomee2002 wants to merge 7 commits into
Open
Conversation
myoungwon
reviewed
Jul 16, 2026
| ::ObjectOperation op; | ||
| op.put_vector(payload); | ||
|
|
||
| IoCtxImpl *impl = vector_internal::IoCtxAccess::get(ioctx); |
Owner
There was a problem hiding this comment.
아예 복사를 하면 아래처럼 다시 셋팅을 하는 복잡함이 없어질 듯 합니다.
myoungwon
reviewed
Jul 16, 2026
|
|
||
| void encode(ceph::bufferlist& bl) const { | ||
| ENCODE_START(1, 1, bl); | ||
| ENCODE_START(2, 1, bl); |
myoungwon
reviewed
Jul 16, 2026
| @@ -6,7 +6,11 @@ | |||
|
|
|||
Owner
There was a problem hiding this comment.
librados: add PG-LSH vector placement policy <-- 이 커밋 자체가 어디에 쓰이는 함수들인지 .....................
myoungwon
reviewed
Jul 16, 2026
| vector_placement::hash_v0_vector_hash(vector_data); | ||
| for (uint32_t table = 0; table < table_count; ++table) { | ||
| const uint32_t signature = | ||
| vector_placement::lsh_v0_signature(values, table, signature_bits); |
ppomee2002
force-pushed
the
pr-pg-lsh-v0-routing
branch
from
July 16, 2026 08:49
fc42c20 to
1a874b8
Compare
ppomee2002
force-pushed
the
pr-pg-lsh-v0-routing
branch
from
July 16, 2026 09:41
1a874b8 to
64ff137
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PG-LSH placement policy 추가
vector_placement_algorithm_pg_lsh_v0 추가
vector_placement.h에 PG-LSH 공통 함수 추가
++vote 방식이 효과가 미미하여 뺐습니다
PG 기반 librados routing 추가
vector_pg_lsh.h에 PG-LSH planner 추가
--> Object name은 PG별 vector container 형태로 생성
.rados.vector/v1/pg-lsh-v0/<bucket_hash>/<index_hash>/pg정보
pg_는 logical object layout에 사용하고 실제 raw PG routing은 IoCtxImpl::oloc.key에 locator key를 설정하여 처리합니다
vector_hash는 object나 PG 선택에서 뺐습니다(hash-v0에서는 사용했었음)
put_vector path 연결
put_vector()에서 vector의 LSH signature를 계산, write 대상 PG D개 선택
각 PG에 대해
하나의 vector는 설정된 D에 따라 여러 PG object에 중복 저장