-
Notifications
You must be signed in to change notification settings - Fork 12
/
manifest.jps
33 lines (33 loc) · 1.06 KB
/
manifest.jps
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
jpsType: install
jpsVersion: '0.9'
id: glassfish-cluster-native
categories:
- apps/clusters
name: Auto-Scalable GlassFish Cluster
logo: https://github.com/jelastic-jps/glassfish/raw/master/glassfish-cluster/img/glassfish-logo.png
description: Pre-configured and ready-to-work GlassFish Cluster with auto scaling triggers. The cluster consists of 1 DAS node, 2 Worker nodes and 1 NGINX node as the load balancer. By default connection to the cluster is secured by Jelastic SSL.
nodes:
- cloudlets: 8
nodeGroup: bl
nodeType: nginx
- cloudlets: 8
nodeGroup: cp
displayName: Worker
count: 2
nodeType: glassfish
cluster: true
onInstall:
- addAutoScalingTriggers
actions:
addAutoScalingTriggers:
script: https://raw.githubusercontent.com/jelastic-jps/glassfish/master/glassfish-cluster/scripts/add-triggers.js?raw=1&_r=${fn.random}
params:
nodeGroup: cp
resourceType: MEM
scaleUpValue: 70
scaleUpLimit: 10
scaleUpLoadPeriod: 1
scaleDownValue: 40
scaleDownLimit: 2
scaleDownLoadPeriod: 10
cleanOldTriggers: true