Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: setup MemCacheStore #421

Merged
merged 5 commits into from
Nov 28, 2022
Merged

Conversation

jiacai2050
Copy link
Contributor

Which issue does this PR close?

Closes #

Rationale for this change

After #415, MemCachedStore is implemented, but not used, this PR add it to setup

What changes are included in this PR?

  1. Remove old data cache
  2. Add new mem cache options

Are there any user-facing changes?

No

How does this change test

Start server locally with config below

bind_addr = "127.0.0.1"
http_port = 5440
grpc_port = 8831
log_level = "debug"

[analytic.storage]
mem_cache_capacity = '1G'
mem_cache_partition_bits = 0

[analytic.storage.object_store]
type = "Local"
data_path = "/tmp/xx"

[analytic]
wal_path = "/tmp/xx"
sst_meta_cache_cap = 10000
scan_batch_size = 10000

[[static_route.topology.schema_shards]]
schema = 'public'
auto_create_tables = true

[[static_route.topology.schema_shards.shard_views]]
shard_id = 0

[static_route.topology.schema_shards.shard_views.endpoint]
addr = "127.0.0.1"
port = 8831

Copy link
Contributor

@Rachelint Rachelint left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@Rachelint Rachelint merged commit 79fa56c into apache:main Nov 28, 2022
@jiacai2050 jiacai2050 deleted the feat-setup-mem-cache branch November 28, 2022 05:48
chunshao90 pushed a commit to chunshao90/ceresdb that referenced this pull request May 15, 2023
* feat: setup MemCacheStore

* cache default to 512mb

* fix compile

* ignore compact tests

* fix harness
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants