Setup

Pre-requisites #

  • Already have a working SeaweedFS cluster, version 3.71 or later.
  • Bucket deletion is not protected by snapshotting.
  • TTL files are not protected by snapshotting.

Setup #

Step 1: Install Seaweed Admin #

Download the Seaweed Admin binary from the Seaweed artifactory repository:

https://github.com/seaweedfs/artifactory/releases

Unzip the binary and copy it to a directory in your PATH.

Step 2: Create a directory to save metadata #

mkdir /path/to/seaweed_admin_data

This directory will be used to store the metadata snapshots and managerial data.

Step 3: Configure Seaweed Admin #

Copy the configuration file to one directory that is safe, since it contains the admin password and the license.

Please email support at seaweedfs dot com to purchase a license.

{
  "license": {
    "code": "test",
    "email": "x@your_company.com",
    "company": "your_company",
    "expires_at_ns": "0",
    "level": 0
  },
  "data_dir": "/path/to/seaweed_admin_data",
  "clusters": [
    {
      "cluster_name": "cluster1",
      "masters": [
        "localhost:9333"
      ],
      "snapshot_retention_days": 30
    }
  ],
  "credentials": [
    {
      "user": "admin",
      "password": "admin"
    }
  ]
}

Step 4: Start Seaweed Admin #


seaweed_admin -config=/path/to/config.json -port=9090

Step 5: Access Seaweed Admin #

Open a browser and go to http://localhost:9090