From a74b8bcb2c39ee718dce38ca70fd7699452ec2e2 Mon Sep 17 00:00:00 2001 From: Daniel Pan Date: Fri, 14 Jun 2024 17:56:27 +0800 Subject: [PATCH] Update document related to cluster deployment --- manual/deploy_pro/deploy_in_a_cluster.md | 67 +----------------------- 1 file changed, 1 insertion(+), 66 deletions(-) diff --git a/manual/deploy_pro/deploy_in_a_cluster.md b/manual/deploy_pro/deploy_in_a_cluster.md index 6713d736..c92c6759 100644 --- a/manual/deploy_pro/deploy_in_a_cluster.md +++ b/manual/deploy_pro/deploy_in_a_cluster.md @@ -306,9 +306,7 @@ If the above works, the next step would be [Enable search and background tasks i ## The final configuration of the front-end nodes -Here is the summary of configurations at the front-end node that related to cluster setup. - -### 7.0 or older versions +Here is the summary of configurations at the front-end node that related to cluster setup. (for version 7.1+) For **seafile.conf**: @@ -325,57 +323,6 @@ For **seahub_settings.py**: ``` AVATAR_FILE_STORAGE = 'seahub.base.database_storage.DatabaseStorage' - -OFFICE_CONVERTOR_ROOT = 'http://' - -``` - -For **seafevents.conf**: - -``` -[INDEX FILES] -enabled = true -interval = 10m -highlight = fvh # This configuration is only available for Seafile 6.3.0 pro and above. -external_es_server = true -es_host = -es_port = 9200 - -[OFFICE CONVERTER] -enabled = true -workers = 1 -## how many pages are allowed to be previewed online. Default is 50 pages -max-pages = 50 -## the max size of documents allowed to be previewed online, in MB. Default is 10 MB -## Previewing a large file (for example >30M) online is likely going to freeze the browser. -max-size = 10 - -``` - -The `[INDEX FILES]` section is needed to let the front-end node know the file search feature is enabled. The `external_es_server = true` is to tell the front-end node not to start the ElasticSearch but to use the ElasticSearch server at the back-end node. - -The `[OFFICE CONVERTER]` section is needed to let the front-end node know the office preview feature is enabled. - -### 7.1+ - -For **seafile.conf**: - -``` -[cluster] -enabled = true -memcached_options = --SERVER= --POOL-MIN=10 --POOL-MAX=100 - -``` - -The `enabled` option will prevent the start of background tasks by `./seafile.sh start` in the front-end node. The tasks should be explicitly started by `./seafile-background-tasks.sh start` at the back-end node. - -For **seahub_settings.py**: - -``` -AVATAR_FILE_STORAGE = 'seahub.base.database_storage.DatabaseStorage' - -OFFICE_CONVERTOR_ROOT = 'http://:6000' - ``` For **seafevents.conf**: @@ -388,20 +335,8 @@ highlight = fvh # This configuration is for improving searching speed external_es_server = true es_host = es_port = 9200 - -[OFFICE CONVERTER] -enabled = true -workers = 1 -## the max size of documents allowed to be previewed online, in MB. Default is 10 MB -## Previewing a large file (for example >30M) online is likely going to freeze the browser. -max-size = 10 -host = -port = 6000 - ``` The `[INDEX FILES]` section is needed to let the front-end node know the file search feature is enabled. The `external_es_server = true` is to tell the front-end node not to start the ElasticSearch but to use the ElasticSearch server at the back-end node. -The `[OFFICE CONVERTER]` section is needed to let the front-end node know the office preview feature is enabled. -