Skip to content

IgGusev/gridgain-code-deployment-demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GridGain code deployment demo

This demo shows how to deploy compute tasks to Gridgain Nebula cluster and run them right from the client`s application.

  1. Navigate to https://staging-ggcc.gridgain.com/
    Screen
  2. Click "Create Nebula Cluster"
    Screen
  3. You can choose Small Instance and fill in "Nodes Count" field 1 to provision simple 1-node cluster
    Screen
  4. Wait till the cluster is successfully provisioned
  5. Ensure the cluster is selected on the Cluster Managerment tab (menu "Clusters")
  6. Go to Deployment menu and create a new deployment
  7. Click "Add artifact" and open a menu with types of artifacts, that you can choose
    Screen
  8. Create following artifacts:
    Direct Link artifact with url https://code-deployment-demo.s3.amazonaws.com/compute-task-sample-1.0.jar
    Maven artifact with coordinate com.google.guava:guava-collections:r03, which is a transitive dependency of the compute task
    Screen
  9. Go to the Clusters, click "..." on the right and choose "Connect". Copy connection url to the cluster from there Screen
  10. Go to ThinClientApp class
  11. Fill copied connection url to ADDRESSES field.
  12. Run the application. It executes a job on cluster and you should see its output on the client node:
    >> Execute org.gridgain.demo.CityFilterTask job
    >> Job result:
    [Barcelona, Bilbao, Córdoba, Gijón, Madrid, Mallorca, Murcia, Málaga, Sevilla, Valencia, Valladolid, Vigo, Zaragoza]
    >> Compute task is executed, check for output on the server nodes.
    

and the following output on the server node: text >> Executing the compute task >> Found 13 cities with code SPA 13. [Optional] Go to the compute task class CityFilterTask.java and invert comments on 26-27 rows: java CityComputeJob job = new CityComputeJob(CountryCode.SPA); // CityComputeJob job = new CityComputeJob(CountryCode.FRA); 14. [Optional] Perform point 5, 6, 7 again and you should get the following output: text >> Execute org.gridgain.demo.CityFilterTask job >> Job result: [Angers, Bordeaux, Brest, Dijon, Grenoble, Lille, Lyon, Marseille, Montpellier, Nantes, Nice, Paris, Reims, Rennes, Strasbourg, Toulon, Toulouse] >> Compute task is executed, check for output on the server nodes. and on the server node side: text >> Executing the compute task >> Found 17 cities with code FRA

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%