You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Quickstart: Deploy a Java app to Azure Service Fabric on Linux
12
12
13
-
This quickstart shows how to deploy your first Java application to Azure Service Fabric using the Eclipse IDE on a Linux developer machine. When you're finished, you have a voting application with a Java web front end that saves voting results in a stateful back-end service in the cluster.
13
+
In this quickstart, you deploy a Java application to Azure Service Fabric using the Eclipse IDE on a Linux developer machine. When you're finished, you have a voting application with a Java web front end that saves voting results in a stateful back-end service in the cluster.
14
14
15
15
Azure Service Fabric is a distributed systems platform for deploying and managing microservices and containers.
16
16
17
-

18
-
19
-
In this quickstart, you learn how to:
20
-
21
-
* Use Eclipse as a tool for your Service Fabric Java applications
22
-
* Deploy the application to your local cluster
23
-
* Scale-out the application across multiple nodes
24
-
25
17
## Prerequisites
26
18
27
-
To complete this quickstart:
28
-
29
-
1.[Install Service Fabric SDK & Service Fabric Command Line Interface (CLI)](https://docs.microsoft.com/azure/service-fabric/service-fabric-get-started-linux#installation-methods)
4.[Set up Java Environment](https://docs.microsoft.com/azure/service-fabric/service-fabric-get-started-linux#set-up-java-development), making sure to follow the optional steps to install the Eclipse plug-in
19
+
-[Java environment](https://docs.microsoft.com/azure/service-fabric/service-fabric-get-started-linux#set-up-java-development) and [Yeoman](https://docs.microsoft.com/azure/service-fabric/service-fabric-get-started-linux#set-up-yeoman-generators-for-containers-and-guest-executables)
20
+
-[Eclipse Neon (4.6)+](https://www.eclipse.org/downloads/packages/) and [Eclipse plug-in for Service Fabric](https://docs.microsoft.com/azure/service-fabric/service-fabric-get-started-linux#install-the-eclipse-plug-in-optional)
21
+
-[Service Fabric SDK and Command Line Interface (CLI)](https://docs.microsoft.com/azure/service-fabric/service-fabric-get-started-linux#installation-methods)
22
+
-[Git](https://git-scm.com/downloads)
33
23
34
24
## Download the sample
35
25
36
26
In a command window, run the following command to clone the sample app repository to your local machine.
The startup of the local cluster takes some time. To confirm that the cluster is fully up, access the Service Fabric Explorer at **http://localhost:19080**. The five healthy nodes indicate the local cluster is up and running.
39
+
The startup of the local cluster takes some time. To confirm that the cluster is fully up, access the Service Fabric Explorer at `http://localhost:19080`. The five healthy nodes indicate the local cluster is up and running.
50
40
51
41

52
42
53
43
2. Open Eclipse.
54
44
3. Select **File**>**Import**>**Gradle**>**Existing Gradle Project** and follow the wizard.
55
-
4. Select **Directory** and choose the `Voting` directory from the `service-fabric-java-quickstart` folder you cloned from GitHub. Select **Finish**.
45
+
4. Select **Directory** and choose the **Voting** directory from the **service-fabric-java-quickstart** folder you cloned from GitHub. Select **Finish**.
56
46
57
47

You can now add a set of voting options, and start taking votes. The application runs and stores all data in your Service Fabric cluster, without the need for a separate database.
69
59
60
+

61
+
70
62
## Scale applications and services in a cluster
71
63
72
-
Services can be scaled across a cluster to accommodate fora changein the load on the services. You scale a service by changing the number of instances running in the cluster. There are many ways of scaling your services;for example, you can use scripts or commands from Service Fabric CLI (sfctl). The following steps use Service Fabric Explorer.
64
+
Services can be scaled across a cluster to accommodate fora changein the load on the services. You scale a service by changing the number of instances running in the cluster. There are many ways of scaling your services. For example, you can use scripts or commands from Service Fabric CLI (`sfctl`). The following steps use Service Fabric Explorer.
73
65
74
-
Service Fabric Explorer runs in all Service Fabric clusters and can be accessed from a browser by browsing to the cluster's HTTP management port (19080); for example, `http://localhost:19080`.
66
+
Service Fabric Explorer runs in all Service Fabric clusters and can be accessed from a browser by browsing to the cluster's HTTP management port (19080). For example, `http://localhost:19080`.
75
67
76
68
To scale the web front-end service, do the following:
77
69
78
-
1. Open Service Fabric Explorer in your cluster - for example, `https://localhost:19080`.
70
+
1. Open Service Fabric Explorer in your cluster. For example, `https://localhost:19080`.
79
71
2. Select the ellipsis (**...**) next to the **fabric:/Voting/VotingWeb** node in the treeview and select **Scale Service**.
80
72
81
73

# Quickstart: Deploy a Java Spring Boot app on Azure Service Fabric
12
12
13
-
This quickstart shows how to deploy a Java Spring Boot application to Azure Service Fabric. Azure Service Fabric is a distributed systems platform for deploying and managing microservices and containers.
14
-
15
-
This quickstart uses the [Getting Started](https://spring.io/guides/gs/spring-boot/) sample from the Spring website. Using familiar command-line tools, this quickstart walks you through deploying the Spring Boot sample as a Service Fabric application. When you're finished, you have the Spring Boot Getting Started sample working on Service Fabric.
16
-
17
-

18
-
19
-
In this quickstart, you learn how to:
20
-
21
-
* Deploy a Spring Boot application to Service Fabric
22
-
* Deploy the application to your local cluster
23
-
* Scale-out the application across multiple nodes
24
-
* Perform failover of your service with no hit to availability
13
+
In this quickstart, you deploy a Java Spring Boot application to Azure Service Fabric by using familiar command-line tools on Linux or MacOS. Azure Service Fabric is a distributed systems platform for deploying and managing microservices and containers.
25
14
26
15
## Prerequisites
27
16
28
-
To complete this quickstart:
17
+
#### [Linux](#tab/linux)
29
18
30
-
1. Install Service Fabric SDK & Service Fabric Command Line Interface (CLI)
19
+
-[Java environment](https://docs.microsoft.com/azure/service-fabric/service-fabric-get-started-linux#set-up-java-development) and [Yeoman](https://docs.microsoft.com/azure/service-fabric/service-fabric-get-started-linux#set-up-yeoman-generators-for-containers-and-guest-executables)
20
+
-[Service Fabric SDK & Service Fabric Command Line Interface (CLI)](https://docs.microsoft.com/azure/service-fabric/service-fabric-get-started-linux#installation-methods)
21
+
-[Git](https://git-scm.com/downloads)
31
22
32
-
a. [Mac](https://docs.microsoft.com/azure/service-fabric/service-fabric-cli#cli-mac)
33
-
34
-
b. [Linux](https://docs.microsoft.com/azure/service-fabric/service-fabric-get-started-linux#installation-methods)
35
-
36
-
1.[Install Git](https://git-scm.com/)
37
-
1. Install Yeoman
23
+
#### [MacOS](#tab/macos)
38
24
39
-
a. [Mac](https://docs.microsoft.com/azure/service-fabric/service-fabric-get-started-mac#create-your-application-on-your-mac-by-using-yeoman)
25
+
-[Java environment and Yeoman](https://docs.microsoft.com/azure/service-fabric/service-fabric-get-started-mac#create-your-application-on-your-mac-by-using-yeoman)
26
+
-[Service Fabric SDK & Service Fabric Command Line Interface (CLI)](https://docs.microsoft.com/azure/service-fabric/service-fabric-cli#cli-mac)
27
+
-[Git](https://git-scm.com/downloads)
40
28
41
-
b. [Linux](https://docs.microsoft.com/azure/service-fabric/service-fabric-get-started-linux#set-up-yeoman-generators-for-containers-and-guest-executables)
42
-
1. Set up Java Environment
43
-
44
-
a. [Mac](https://docs.microsoft.com/azure/service-fabric/service-fabric-get-started-mac#create-your-application-on-your-mac-by-using-yeoman)
45
-
46
-
b. [Linux](https://docs.microsoft.com/azure/service-fabric/service-fabric-get-started-linux#set-up-java-development)
29
+
---
47
30
48
31
## Download the sample
49
32
50
-
In a terminal window, run the following command to clone the Spring Boot Getting Started sample app to your local machine.
33
+
In a terminal window, run the following command to clone the Spring Boot [Getting Started](https://github.com/spring-guides/gs-spring-boot) sample app to your local machine.
1. In the `SpringServiceFabric/SpringServiceFabric/SpringGettingStartedPkg/code` folder, create a file called `entryPoint.sh`. Add the following to the `entryPoint.sh` file.
53
+
1. In the *SpringServiceFabric/SpringServiceFabric/SpringGettingStartedPkg/code* folder, create a file called *entryPoint.sh*. Add the following code to the *entryPoint.sh* file.
The startup of the local cluster takes some time. To confirm that the cluster is fully up, access the Service Fabric Explorer at **http://localhost:19080**. The five healthy nodes indicate the local cluster is up and running.
117
+
The startup of the local cluster takes some time. To confirm that the cluster is fully up, access the Service Fabric Explorer at `http://localhost:19080`. The five healthy nodes indicate the local cluster is up and running.
135
118
136
119

137
120
138
-
1. Open the `gs-spring-boot/SpringServiceFabric` folder.
121
+
1. Open the *gs-spring-boot/SpringServiceFabric* folder.
139
122
1. Run the following command to connect to your local cluster.
@@ -153,6 +136,8 @@ At this stage, you have created a Service Fabric application for the Spring Boot
153
136
154
137
You can now access the Spring Boot application that was deployed to a Service Fabric cluster.
155
138
139
+
For more information, see the Spring Boot [Getting Started](https://spring.io/guides/gs/spring-boot/) sample on the Spring website.
140
+
156
141
## Scale applications and services in a cluster
157
142
158
143
Services can be scaled across a cluster to accommodate fora changein load on the services. You scale a service by changing the number of instances running in the cluster. There are many ways of scaling your services, for example, you can use scripts or commands from Service Fabric CLI (sfctl). The following steps use Service Fabric Explorer.
0 commit comments