Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
Refine the deploy doc and add troubleshooting (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
debuggy authored Jan 20, 2021
1 parent 2101689 commit bfbd0af
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
3 changes: 2 additions & 1 deletion docs/admin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ In openpaimarketplace release v1.4.0 and later, the deployment has integrated in
## Table of Contents

1. [Deploy Marketplace version v1.4.0 and later](./deploy_v1.4.0_later.md)
1. [Deploy Marketplace version v1.3.0 and previous](./deploy_v1.3.0_previous.md)
2. [Deploy Marketplace version v1.3.0 and previous](./deploy_v1.3.0_previous.md)
3. [Troubleshooting](./troubleshooting.md)
9 changes: 6 additions & 3 deletions docs/admin/deploy_v1.4.0_later.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ If the 3 services are started successfully, edit webportal plugin config in **se
1. Add marketplace related configs in **service-configuration.yaml**, including `cluster.common.marketplace, marketplace-db, marketplace-restserver, marketplace-webportal and webportal.plugins` properties.

```
cluster:
common:
marketplace: 'true'
Expand Down Expand Up @@ -54,9 +55,9 @@ If the 3 services are started successfully, edit webportal plugin config in **se

- `marketplace-restserver`: including `db_user, db_password and azure_storage`. These values are used when starting [Marketplace rest server](https://github.com/microsoft/pai/tree/master/src/marketplace-restserver/config). The first two values should be aligned with values set in `marketplace-db`. The last value `azure_storage` is not required, if this value exists, rest server will initialize it into database as an available [azure blob storage](../user/data_management.md).

- `marketplace-webportal.marketplace_api_uri`: this value is set with Marketplace rest server api url. If pylon is deployed in OpenPAI, marketplace_api_uri could be set as `https://<openpai_cluster_ip>/marketplace/api`. If pylon is not deployed in OpenPAI, then marketplace_api_uri should be set as `http://<master_node_ip>:<9292>`.
- `marketplace-webportal.marketplace_api_uri`: this value is set with Marketplace rest server api url. If OpenPAI webportal url is `https://xxx` , marketplace_api_uri should be set as `https://<openpai_cluster_ip>/marketplace/api`. If OpenPAI webpoortal url is `http://xxx`, then marketplace_api_uri should be set as `http://<master_node_ip>:<9292>`.

- `webportal.plugins`: this value is used in OpenPAI webportal, set with the marketplace webportal plugin url when marketplace-webportal service successfully started. Same as `marketpalce_api_uri`, if pylon is deployed in OpenPAI, marketplace_api_uri could be set as `https://<openpai_cluster_ip>/marketplace/plugin.js`. If pylon is not deployed in OpenPAI, then marketplace_api_uri should be set as `http://<master_node_ip>:<9293>/plugin.js`.
- `webportal.plugins`: this value is used in OpenPAI webportal, set with the marketplace webportal plugin url when marketplace-webportal service successfully started. Same as `marketpalce_api_uri`, if OpenPAI webportal url is `https://xxx`, marketplace_api_uri could be set as `https://<openpai_cluster_ip>/marketplace/plugin.js`. If OpenPAI webportal url is `http://xxx`, then marketplace_api_uri should be set as `http://<master_node_ip>:<9293>/plugin.js`.

2. After the pai config file **service-configuration.yaml** are edited correctly, push config file to update the cluster config using command `./paictl.py config push -p <config-folder> -m service`.

Expand All @@ -77,4 +78,6 @@ If the 3 services are started successfully, edit webportal plugin config in **se

1. The marketplace will be deployed to master node in OpenPAI cluster.

2. User can still deploy marketplaces service without set `cluster.common.market: "true"`, but the pylon will not expose the marketplace uri without this config.
2. User can still deploy marketplaces service without set `cluster.common.market: "true"`, but the OpenPAI cluster will not expose the marketplace uri without this config.

## Q&A
5 changes: 5 additions & 0 deletions docs/admin/troubleshooting.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Troubleshooting

## How to determine the url of marketplace rest server and webportal plugin?

The marketplace rest server and webportal url is aligned with OpenPAI cluster. If https is enabled in OpenPAI cluster, then the url of marketplace should be `https://<openpai_cluster_ip>/marketplace/api` and `https://<openpai_cluster_ip>/marketplace/plugin.js`, otherwise if https is not enabled in OpenPAI, the url should be `http://<openpai_cluster_ip>/marketplace/api` and `https://<openpai_cluster_ip>/marketplace/plugin.js`.

0 comments on commit bfbd0af

Please sign in to comment.