Skip to content

Commit

Permalink
Merge pull request #286 from haiwen/optimize_doc_in_es_server
Browse files Browse the repository at this point in the history
feat: add details in increasing mmapfs count
  • Loading branch information
freeplant authored May 6, 2024
2 parents 17926e5 + 431260a commit e7f98a8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
6 changes: 3 additions & 3 deletions manual/docker/docker-compose/pro/11.0/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@ services:
- seafile-net

elasticsearch:
image: elasticsearch:8.6.2
image: elasticsearch:8.13.0
container_name: seafile-elasticsearch
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
- "ES_JAVA_OPTS=-Xms2g -Xmx2g"
- "xpack.security.enabled=false"
ulimits:
memlock:
soft: -1
hard: -1
mem_limit: 2g
mem_limit: 4g
volumes:
- /opt/seafile-elasticsearch/data:/usr/share/elasticsearch/data # Requested, specifies the path to Elasticsearch data persistent store.
networks:
Expand Down
15 changes: 14 additions & 1 deletion manual/docker/pro-edition/deploy_seafile_pro_with_docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,20 @@
This manual explains how to deploy and run Seafile Server Professional Edition (Seafile PE) on a Linux server using Docker and Docker Compose. The deployment has been tested for Debian/Ubuntu and CentOS, but Seafile PE should also work on other Linux distributions.

## Requirements
Seafile PE requires a minimum of 2 cores and 2GB RAM. If Elasticsearch is installed on the same server, the minimum requirements are 4 cores and 4 GB RAM.
Seafile PE requires a minimum of 2 cores and 2GB RAM. If Elasticsearch is installed on the same server, the minimum requirements are 4 cores and 4 GB RAM, and make sure the [mmapfs counts](https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules-store.html#mmapfs) do not cause excptions like out of memory, which can be increased by following command (see <https://www.elastic.co/guide/en/elasticsearch/reference/current/vm-max-map-count.html> for futher details):

```shell
sysctl -w vm.max_map_count=262144 #run as root
```

or modify **/etc/sysctl.conf** and reboot to set this value permanently:

```shell
nano /etc/sysctl.conf

# modify vm.max_map_count
vm.max_map_count=262144
```

Seafile PE can be used without a paid license with up to three users. Licenses for more user can be purchased in the [Seafile Customer Center](https://customer.seafile.com) or contact Seafile Sales at [email protected] or one of [our partners](https://www.seafile.com/en/partner/).

Expand Down

0 comments on commit e7f98a8

Please sign in to comment.