From 17ee9c2dea46d1e62960e0eec3b09dbe78dc99c0 Mon Sep 17 00:00:00 2001 From: chrislu Date: Tue, 18 Mar 2025 08:13:55 -0700 Subject: [PATCH] updates related to cassandra2 --- Filer-Cassandra-Setup.md | 5 +++-- Super-Large-Directories.md | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Filer-Cassandra-Setup.md b/Filer-Cassandra-Setup.md index b98c9b6..884b961 100644 --- a/Filer-Cassandra-Setup.md +++ b/Filer-Cassandra-Setup.md @@ -18,10 +18,11 @@ create keyspace seaweedfs WITH replication = { use seaweedfs; CREATE TABLE filemeta ( + dirhash bigint, directory varchar, name varchar, meta blob, - PRIMARY KEY (directory, name) + PRIMARY KEY ((dirhash, directory), name) ) WITH CLUSTERING ORDER BY (name ASC); ``` @@ -33,7 +34,7 @@ Try run ```weed filer -h``` to see an example filer.toml file. The file should b Here is the shortest example for Cassandra ```bash -[cassandra] +[cassandra2] enabled = true keyspace="seaweedfs" hosts=[ diff --git a/Super-Large-Directories.md b/Super-Large-Directories.md index a02bcc7..f905ab1 100644 --- a/Super-Large-Directories.md +++ b/Super-Large-Directories.md @@ -61,7 +61,7 @@ The consequences are: In `filer.toml` for Cassandra/Redis, there is an option `superLargeDirectories`. For example, if you will have a lot of user data under `/home/users` ``` -[cassandra] +[cassandra2] ... superLargeDirectories = [ "/home/users",