Deploy-backend-in-standalone-mode.md 1.7 KB
Newer Older
wu-sheng's avatar
wu-sheng 已提交
1
# Usage scenario
wu-sheng's avatar
wu-sheng 已提交
2
Default standalong mode collector means don't support cluster. It uses H2 as storage layer implementation, suggest that use only for preview, test, demonstration, low throughputs and small scale system.
wu-sheng's avatar
wu-sheng 已提交
3

4
If you are using SkyWalking in a low throughputs monitoring scenario, and don't want to deploy cluster, at least, switch the storage implementation from H2 to Elasticsearch.
5

wu-sheng's avatar
wu-sheng 已提交
6
**H2 storage implementation is not provided in 5.0.0-alpha, so you must deploy ElasticSearch before try to start backend**
wu-sheng's avatar
wu-sheng 已提交
7 8

## Requirements
wu-sheng's avatar
wu-sheng 已提交
9 10
* JDK 8+

wu-sheng's avatar
wu-sheng 已提交
11
## Download
wu-sheng's avatar
wu-sheng 已提交
12
* [Releases](https://github.com/apache/incubator-skywalking/releases)
wu-sheng's avatar
wu-sheng 已提交
13

wu-sheng's avatar
wu-sheng 已提交
14
## Quick start
G
Gao Hongtao 已提交
15
You can simplely tar/unzip and startup if ports 8080, 10800, 11800, 12800 are free.
wu-sheng's avatar
wu-sheng 已提交
16

G
Gao Hongtao 已提交
17
- `tar -xvf skywalking-dist.tar.gz` in Linux, or unzip in windows.
wu-sheng's avatar
wu-sheng 已提交
18 19 20 21
- run `bin/startup.sh` or `bin/startup.bat`

You should keep the `config/application.yml` as default.

wu-sheng's avatar
wu-sheng 已提交
22 23
- NOTICE: **In 5.0.0-alpha, startup.sh will start two processes, collector and UI, and UI uses 127.0.0.1:10800 as default.**

wu-sheng's avatar
wu-sheng 已提交
24 25 26 27 28 29 30
## Use Elastic Search instead of H2 as storage layer implementation
Even in standalone mode, collector can run with Elastic Search as storage. If so, uncomment the `storage` section in `application.yml`, set the config right. The default configs fit for collector and Elasticsearch both running in same machine, and not cluster.

## Deploy Elasticsearch server
- Modify `elasticsearch.yml`
  - Set `cluster.name: CollectorDBCluster`
  - Set `node.name: anyname`, this name can be any, it based on Elasticsearch.
31
  - Add the following configurations
wu-sheng's avatar
wu-sheng 已提交
32 33 34 35 36 37

```
# The ip used for listening
network.host: 0.0.0.0
thread_pool.bulk.queue_size: 1000
```
wu-sheng's avatar
wu-sheng 已提交
38

wu-sheng's avatar
wu-sheng 已提交
39
- Start Elasticsearch