Service-Fabric-AppDRTool/USAGEGUIDE.md

64 строки
4.8 KiB
Markdown
Исходник Постоянная ссылка Обычный вид История

2018-11-22 15:17:23 +03:00
2018-11-23 13:48:26 +03:00
# Usage Guide for Service Fabric Application DR Tool
2018-11-22 15:17:23 +03:00
2018-11-23 13:48:26 +03:00
How to use the Service Fabric Application Disaster Recovery Tool for your cluster/applications/services backup and restore scenarios.
2018-11-23 08:29:44 +03:00
## Getting Started
2018-12-11 16:08:29 +03:00
As mentioned in the [`README`](../master/README.md), ensure you have everything set up. Locate to [`https://localhost:8080`](https://localhost:8080) where you can find the application landing page.
2018-11-23 08:29:44 +03:00
## Connect to Service Fabric Clusters
2018-12-11 16:06:23 +03:00
![Connect to Service Fabric Clusters](../master/img/connect_to_sf_clusters.png)
2018-11-23 08:29:44 +03:00
The landing page will ask you for the details of the clusters you want to use the tool on. There is a notion of a 'Primary Cluster' and 'Secondary Cluster', which are:
2018-11-23 08:39:16 +03:00
- **Primary Cluster**: The cluster which you would want to recover in a Disaster Recovery scenario, this is the main cluster.
2018-11-26 16:28:28 +03:00
- **Secondary Cluster**: The cluster which periodically restores the backups from the primary on itself, this cluster acts as the restorer and can be used as main cluster, in the event of loss of the primary cluster.
2018-11-23 08:29:44 +03:00
Enter these details such as:
2018-11-23 14:06:35 +03:00
- **Primary/Secondary Cluster endpoint**: The TCP client endpoint to connect to your cluster. For instance: `sfappdrtool.southindia.cloudapp.azure.com:19000`.
- **Primary/Secondary Cluster HTTP endpoint**: The HTTP endpoint to connect to your cluster. For instance: `https://sfappdrtool.southindia.cloudapp.azure.com:19080`.
- **Secure Thumbprint**: Thumbprint of the certificate needed to connect to your secure cluster. Not needed in the case of unsecure clusters. For instance: `ef3ddbf950a07ed96bcefb50918104a297693d12`.
2018-11-26 16:28:28 +03:00
- **Common Name**: Common Name of the subject of the certificate, needed to connect to your secure cluster. Not needed in the case of unsecure clusters. For instance: `sfappdrtool.southindia.cloudapp.azure.com`.
2018-11-23 08:29:44 +03:00
After you've connected once to your clusters, you can select them directly when you visit the page the next time.
2018-12-12 15:56:09 +03:00
![Connect to Service Fabric Clusters](../master/img/connect_to_sf_clusters_2.png)
2018-11-23 08:29:44 +03:00
Click on 'Next' to follow on to the next page.
2018-11-23 13:54:16 +03:00
## Configure Service Fabric Applications for Disaster Recovery
2018-11-23 08:29:44 +03:00
2018-12-12 15:56:09 +03:00
![Configure Service Fabric Applications for Disaster Recovery](../master/img/configure_sf_apps.png)
![Configure Service Fabric Applications for Disaster Recovery](../master/img/configure_sf_apps2.png)
2018-11-23 08:29:44 +03:00
This page shows all the applications running on your primary cluster. The applications can be expanded to see the services which are part of the application. The status of the applications can be seen by their colours as follows:
2018-11-23 08:39:16 +03:00
- **Red**: The application or service only exists on the primary cluster and not on the secondary cluster and hence cannot be configured for disaster recovery.
2018-11-26 16:28:28 +03:00
- **Yellow**: The application or service exists on both primary and secondary and can be configured for disaster recovery, but not yet configured.
- **Green**: The application or service has been successfully configured for backup and its' backup-restore status can be seen periodically on the status screen.
2018-11-23 08:29:44 +03:00
When you select a application or service for disaster recovery, you will be prompted to enter the credentials for the backup policies associated for that application or service. You can also edit these credentials after you've set them, for instance, if you would want to change the credentials on a rolling basis.
2018-11-23 13:53:39 +03:00
Backup Restore happens periodically every 5 mins, scanning for new backups on primary and then restoring on secondary. The timespan can be changed in `RestoreService.cs`, via `periodTimeSpan`.
### Backup Policy credentials
Backup Policy credentials are encrypted. The key can be set at `PolicyStorageEncryptionKey` in `ApplicationParameters/Cloud.xml` for cloud deployements and similarly in `Local1Node.xml` / `Local5Node.xml` for local deployments.
2018-11-26 16:28:28 +03:00
### Disconfigure Service Fabric Application for Disaster Recovery
2018-11-23 13:53:39 +03:00
2018-11-26 16:28:28 +03:00
After configuring an application or service for disaster recovery, you can select it again for disconfiguring it. Click on the now green button again and it should display the option to disconfigure/disable it as well from disaster recovery.
2018-11-23 13:53:39 +03:00
2018-11-23 08:29:44 +03:00
After you've configured all the applications or services you want for disaster recovery, click on 'Next' to follow on to the next page.
## Status of Disaster Recovery configured Applications and Services
2018-12-12 15:56:09 +03:00
![Status of Disaster Recovery configured Applications and Services](../master/img/status_of_sf_clusters.png)
2018-11-23 08:29:44 +03:00
This page shows you the status of the backup-restores of your applications and services that are taking place. If any operations fail for any reason, that specific instance will be highlighted in red for your further investigation.
The timer to check for new updates in status is configurable, and can be set to any time interval.
2018-11-23 13:48:26 +03:00
Note that the status page will redirect to the initial connect page if no clusters have been configured yet.