Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 3.deploy-nebula-graph-with-docker-compose.md #854

Merged
merged 1 commit into from
Nov 1, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Using Docker Compose can quickly deploy Nebula Graph services based on the prepa
The `master` branch contains the untested code for the latest Nebula Graph development release. **DO NOT** use this release in a production environment.

```bash
$ git clone -b v{{dockercompose.release}} https://github.com/vesoft-inc/nebula-docker-compose.git
$ git clone -b {{dockercompose.branch} https://github.com/vesoft-inc/nebula-docker-compose.git
```

2. Go to the `nebula-docker-compose` directory.
Expand All @@ -40,7 +40,7 @@ Using Docker Compose can quickly deploy Nebula Graph services based on the prepa

!!! Note

Update the [Nebula Graph images](#how-to-upgrade-nebula-graph-services) and [Nebula Console images](#how-to-update-the-nebula-console-client) first if they are out of date.
Update the [Nebula Graph images](#how-to-upgrade-or-update-the-docker-images-of-nebula-graph-services) and [Nebula Console images](#how-to-update-the-nebula-console-client) first if they are out of date.

```bash
[nebula-docker-compose]$ docker-compose up -d
Expand Down Expand Up @@ -178,24 +178,24 @@ $ docker-compose down
The following information indicates you have successfully stopped the Nebula Graph services:

```bash
Stopping nebula-docker-compose_storaged0_1 ... done
Stopping nebula-docker-compose_graphd2_1 ... done
Stopping nebula-docker-compose_graphd1_1 ... done
Stopping nebula-docker-compose_graphd_1 ... done
Stopping nebula-docker-compose_storaged1_1 ... done
Stopping nebula-docker-compose_graphd2_1 ... done
Stopping nebula-docker-compose_storaged2_1 ... done
Stopping nebula-docker-compose_storaged0_1 ... done
Stopping nebula-docker-compose_metad0_1 ... done
Stopping nebula-docker-compose_metad2_1 ... done
Stopping nebula-docker-compose_metad1_1 ... done
Removing nebula-docker-compose_storaged0_1 ... done
Stopping nebula-docker-compose_metad2_1 ... done
Removing nebula-docker-compose_graphd2_1 ... done
Removing nebula-docker-compose_graphd1_1 ... done
Removing nebula-docker-compose_graphd_1 ... done
Removing nebula-docker-compose_storaged1_1 ... done
Removing nebula-docker-compose_graphd2_1 ... done
Removing nebula-docker-compose_storaged2_1 ... done
Removing nebula-docker-compose_storaged0_1 ... done
Removing nebula-docker-compose_metad0_1 ... done
Removing nebula-docker-compose_metad2_1 ... done
Removing nebula-docker-compose_metad1_1 ... done
Removing nebula-docker-compose_metad2_1 ... done
Removing network nebula-docker-compose_nebula-net
```

Expand Down Expand Up @@ -227,9 +227,18 @@ graphd:

`9669:9669` indicates the internal port 9669 is uniformly mapped to external ports, while `19669` indicates the internal port 19669 is randomly mapped to external ports.

### How to update the docker images of Nebula Graph services
### How to upgrade or update the docker images of Nebula Graph services

To update the images of the Graph Service, Storage Service, and Meta Service, run `docker-compose pull` in the `nebula-docker-compose` directory.
1. In the `nebula-docker-compose/docker-compose.yaml` file, change all the `image` values to the required image version.

2. In the `nebula-docker-compose` directory, run `docker-compose pull` to update the images of the Graph Service, Storage Service, and Meta Service.

!!! note
Note that all the Nebula Graph services are stopped before running the command `docker-compose pull`.

3. Run `docker-compose up -d` to start the Nebula Graph services again.

4. After connecting to Nebula Graph with Nebula Console, run `show hosts graph`, `show hosts storage`, or `show hosts meta` to check the version of the responding service respectively.

### `ERROR: toomanyrequests` when `docker-compose pull`

Expand All @@ -247,16 +256,6 @@ To update the Nebula Console client, run the following command.
docker pull vesoft/nebula-console:{{console.branch}}
```

### How to upgrade Nebula Graph services

To upgrade Nebula Graph, update the Nebula Graph docker images and restart the services.

1. In the `nebula-docker-compose` directory, run `docker-compose pull` to update the Nebula Graph docker images.

2. Run `docker-compose down` to stop the Nebula Graph services.

3. Run `docker-compose up -d` to start the Nebula Graph services again.

### Why can’t I connect to Nebula Graph via port `3699` after updating the nebula-docker-compose repository (Nebula Graph 2.0.0-RC)?

In Nebula Graph 2.0.0-RC release, the default port is changed from `3699` to `9669`. Please use port `9669` to connect to Nebula Graph, or modify the port in `docker-compose.yaml`.
Expand Down