-
Notifications
You must be signed in to change notification settings - Fork 1
Filer Cassandra Setup
Chris Lu edited this page May 24, 2021
·
3 revisions
SeaweedFS can utilize existing familiar data store, e.g., Cassandra, Mysql, Postgres, Redis, Sqlite, to store the filer metadata.
The following takes Cassandra as an example.
Here is the CQL to create the table.CassandraStore. Optionally you can adjust the keyspace name and replication settings. For production, you would want to set replication_factor to 3 if there are at least 3 Cassandra servers.
create keyspace seaweedfs WITH replication = {
'class':'SimpleStrategy',
'replication_factor':1
};
use seaweedfs;
CREATE TABLE filemeta (
directory varchar,
name varchar,
meta blob,
PRIMARY KEY (directory, name)
) WITH CLUSTERING ORDER BY (name ASC);
Try run weed filer -h to see an example filer.toml file. The file should be under one of current directory, $HOME/.seaweedfs/, or /etc/seaweedfs/ folders.
Here is the shortest example for Cassandra
[cassandra]
enabled = true
keyspace="seaweedfs"
hosts=[
"localhost:9042",
]weed filer- Introduction
- API
- Configuration
- Filer
- Filer Stores
- Advanced Filer Configurations
- Cloud Drive
- AWS S3 API
- AWS IAM
- Replication and Backup
- Messaging
- Use Cases
- Operations
- Advanced
- Security
- Misc Use Case Examples