Skip to content

Commit

Permalink
op-guide: add fontconfig note (#456)
Browse files Browse the repository at this point in the history
  • Loading branch information
lilin90 authored and CaitinChen committed May 3, 2018
1 parent 953d97d commit 0e35378
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
6 changes: 6 additions & 0 deletions op-guide/ansible-deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,12 @@ To deploy TiDB using a normal user account, take the following steps:
ansible-playbook deploy.yml
```
> **Note:** You can use the `Report` button on the Grafana Dashboard to generate the PDF file. This function depends on the `fontconfig` package. To use this function, login to the `grafana_servers` machine and install it using the following command:
>
> ```
> $ sudo yum install fontconfig
> ```
5. Start the TiDB cluster.
```
Expand Down
15 changes: 12 additions & 3 deletions op-guide/offline-ansible-deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,18 @@ See [Orchestrate the TiDB cluster](ansible-deployment.md#orchestrate-the-tidb-cl

## Deploy the TiDB cluster

1. See [Deploy the TiDB cluster](ansible-deployment.md#deploy-the-tidb-cluster).
2. You do not need to run the `ansible-playbook local_prepare.yml` playbook again.
1. You do not need to run the `ansible-playbook local_prepare.yml` playbook again.
2. You can use the `Report` button on the Grafana Dashboard to generate the PDF file. This function depends on the `fontconfig` package. To use this function, download the [`fontconfig` offline installation package](https://download.pingcap.org/fontconfig-rpms.el7.tar.gz) and upload it to the `grafana_servers` machine to install.

```
$ tar -xzvf fontconfig-rpms.el7.tar.gz
$ cd fontconfig-rpms.el7/offline_packages
$ chmod u+x install_fontconfig.sh
$ ./install_fontconfig.sh
```

3. Refer to [Deploy the TiDB cluster](ansible-deployment.md#deploy-the-tidb-cluster).

## Test the cluster

See [Test the cluster](ansible-deployment.md#test-the-cluster).
See [Test the cluster](ansible-deployment.md#test-the-cluster).

0 comments on commit 0e35378

Please sign in to comment.