Skip to content
GigaSpaces Logo GigaSpaces Logo
  • Products
    • InsightEdge Portfolio
      • Smart Cache
      • Smart ODS
      • Smart Augmented Transactions
    • GigaSpaces Cloud
  • Roles
    • Architects
    • CXOs
    • Product Teams
  • Solutions
    • Industry Solutions
      • Financial Services
      • Insurance
      • Retail and eCommerce
      • Telecommunications
      • Transportations
    • Technical Solutions
      • Operational BI
      • Mainframe & AS/400 Modernization
      • In Memory Data Grid
      • Transactional and Analytical Processing (HTAP)
      • Hybrid Cloud Data Fabric
      • Multi-Tiered Storage
      • Kubernetes Deployment
      • Streaming Analytics for Stateful Apps
  • Customers
  • Company
    • About GigaSpaces
    • Customers
    • Partners
    • Support & Services
      • University
      • Services
      • Support
    • News
    • Contact Us
    • Careers
  • Resources
    • Webinars
    • Blog
    • Demos
    • Solution Briefs & Whitepapers
    • Case Studies
    • Benchmarks
    • ROI Calculators
    • Analyst Reports
    • eBooks
    • Technical Documentation
  • Contact Us
  • Try Free

Distributed Java Application Deployment – 1 … 2 … 3

Subscribe to our blog!

Subscribe for Updates
Close
Back

Distributed Java Application Deployment – 1 … 2 … 3

itaf February 2, 2011
2 minutes read

Cloud platforms (such as Google App Engine and Windows Azure) offer a simple deployment experience. Just upload your code, and the cloud takes care of the rest. GigaSpaces XAP v8 brings this user experience without the cloud vendor lock-in. Your application can now be deployed on your laptop,  in the data center or on any cloud infrastructure.

Step 1: Start Agent on each machine.

The first step is running an Agent on each machine. Simply run the “gs-agent” script, or write a plugin that does it for you. The GigaSpaces test lab uses two different plugins. The default plugin automatically discovers agents that have been started in advance; the XenServer plugin simulates a cloud environment by starting a new Virtual Machine on-demand. Plugins for public clouds will follow.

Step 2: Deploy and specify maximum Memory and CPU

The second step is specifying the required memory and CPU at any time after deployment. GigaSpaces applications can achieve low latency data access by loading the data and the code into the same process. That requires memory capacity planning (for your data), and CPU capacity planning (for your code).  The admin API uses this declarative semantic to describe the application deployment across different machines:

ProcessingUnit pu =
manager.deploy(new ElasticStatefulProcessingUnitDeployment(“businesslogic.jar”)
.maxNumberOfCpuCores(32)
.maxMemoryCapacity(64, MemoryUnit.GIGABYTES)
.memoryCapacityPerContainer(4,MemoryUnit.GIGABYTES));

Step 3: Trigger Scale-Out or Scale-In

Scale-out processing unit
The manager continuously enforces the specified capacity. It automatically discovers new machines, detects their memory and CPU capabilities, and scales the application on demand to meet the specified capacity. The manager automatically performs corrective actions if a process or a machine fails and maintains a balanced application deployment across machines. Which leaves one thing – the trigger. Triggering the scale-in or scale-out is manually performed by the administrator by issuing the pu.scale() API call.

pu.scale(new ManualCapacityScaleConfigurer()
.numberOfCpuCores(4)
.memoryCapacity(16,MemoryUnit.GIGABYTES)
.create()
);

 

CATEGORIES

  • GigaSpaces
itaf

All Posts (9)

YOU MAY ALSO LIKE

December 6, 2007

Agile Development at GigaSpaces
1 minutes read

July 6, 2008

Quantum Leap with XAP 6.5…
4 minutes read

November 13, 2006

Persistence and the reliability myth
2 minutes read
  • Copied to clipboard

PRODUCTS, SOLUTIONS & ROLES

  • Products
  • InsightEdge Portfolio
    • Smart Cache
    • Smart ODS
    • Smart Augmented Transactions
    • Compare InsightEdge Products
  • GigaSpaces Cloud
  • Roles
  • Architects
  • CXOs
  • Product Teams
  • Solutions
  • Industry
    • Financial Services
    • Insurance
    • Retail and eCommerce
    • Telecommunications
    • Transportation
  • Technical
    • Operational BI
    • Mainframe & AS/400 Modernization
    • In Memory Data Grid
    • HTAP
    • Hybrid Cloud Data Fabric
    • Multi-Tiered Storage
    • Kubernetes Deployment
    • Streaming Analytics for Stateful Apps

RESOURCES

  • Resource Hub
  • Webinars
  • Blogs
  • Demos
  • Solution Briefs & Whitepapers
  • Case Studies
  • Benchmarks
  • ROI Calculators
  • Analyst Reports
  • eBooks
  • Technical Documentation
  • Featured Case Studies
  • Mainframe Offload with Groupe PSA
  • Digital Transformation with Avanza Bank
  • High Peak Handling with PriceRunner
  • Optimizing Business Communications with Avaya

COMPANY

  • About
  • Customers
  • Management
  • Board Members
  • Investors
  • News
  • Events
  • Careers
  • Contact Us
  • Book A Demo
  • Try GigaSpaces For Free
  • Partners
  • OEM Partners
  • System Integrators
  • Value Added Resellers
  • Technology Partners
  • Support & Services
  • University
  • Services
  • Support
Copyright © GigaSpaces 2021 All rights reserved | Privacy Policy
LinkedInTwitterFacebookYouTube

Contact Us