Presentation is loading. Please wait.

Presentation is loading. Please wait.

APEX power! Alan Arentsen brought to you by GlassFish.

Similar presentations


Presentation on theme: "APEX power! Alan Arentsen brought to you by GlassFish."— Presentation transcript:

1 APEX power! Alan Arentsen brought to you by GlassFish

2 @alanarentsen alanarentsen.blogspot.com

3

4 Application Express Architecture

5

6

7

8 Supported J2EE Web Servers Application Servers

9 Supported Application Servers

10 Miaauw! Virtually everything designed to work on Tomcat works on GlassFish. The GlassFish logo is definitely more attractive than the brown kitty. …

11 Supported Application Servers GlassFish is a full Java 2 Enterprise Environment (J2EE) environment. GlassFish has a comprehensive administration GUI. Glassfish has a bigger knowledge base because it’s supported much longer than Tomcat.

12 GlassFish Server Database Application Server Load

13 Database GlassFish Server Connection Pool HTTP / HTTPS Application Server Load

14 Database GlassFish Server Connection Pool Application Server Load

15 hardware overload Connection Pool Application Server Load HTTP / HTTPS

16 Connection Pool Application Server Load HTTP / HTTPS hardware failure

17 ? redundancy Application Server Load

18 Load balancer redundancy Application Server Load

19 Administrative Nightmare

20 redundancy GlassFish Clustering Node 1 Node 2 Node 3Node 4

21 redundancy GlassFish Clustering Node 1 Node 2 Node 3Node 4 Cluster 1 Cluster 2

22 GlassFish Clustering Domain DAS Repository Applications Resources Configuration

23 Domain Administration Server (DAS) Cluster Site02 Cluster Site01 GlassFish Clustering Node001 Node002 Node003 Instance Node 001 Instance Node 003

24 GlassFish Clustering Domain DAS Repository Applications Resources Configuration Cluster Site01 Node001 Node002 Node003 Cluster Site02 Instance Node 001 Instance Node 003

25 GlassFish Clustering Domain DAS Repository Applications Resources Configuration Nodes

26 GlassFish Clustering Domain DAS Repository Applications Resources Configuration Nodes S1_InstanceN01 Repsitory Cache S2_InstanceN01 Repsitory Cache

27 GlassFish Clustering Domain DAS Repository Applications Resources Configuration Nodes S1_InstanceN01 Repsitory Cache S2_InstanceN01 Repsitory Cache S2_InstanceN03 Repsitory Cache

28 GlassFish Clustering Nodes S1_InstanceN01 Repsitory Cache S2_InstanceN01 Repsitory Cache S2_InstanceN03 Repsitory Cache

29 GlassFish Clustering Nodes S1_InstanceN01 Repsitory Cache S2_InstanceN01 Repsitory Cache S2_InstanceN03 Repsitory Cache ?

30 Application Express Architecture

31 Apache HTTP server

32 http://site02.ordina.nl Apache Load Balancer

33 Apache HTTP server http://site02.ordina.nl Apache Load Balancer httpd.conf VirtualHost: site02.ordina.nl BalancerMember http://node001.local:4880 http://node003.local:4880 S1_InstanceN01 Repsitory Cache S2_InstanceN01 Repsitory Cache S2_InstanceN03 Repsitory Cache

34 Apache Load Balancer Application Express Architecture DAS Domain Connection Pool firewall APEX power!

35 Administration Tools Administration Console asadmin Utility REST Interfaces

36 Administration Tools Administration Console Pros / Cons: Very nice and complete interface A lot of work to configure Use it for: Minor configuration changes Overview and searching in configurations

37 Administration Tools asadmin Utility Pros / Cons: Not user friendly GUI Fast configuring server Use it for: Installation scripts Fast configuring multiple servers

38 Administration Tools REST Interfaces Pros / Cons: Not user friendly GUI Fast configuring server Use it for: Installation scripts Configuring from other applications

39 Administration Tools Administration Console asadmin Utility REST Interfaces

40

41 Live Demo asadmin --user admin --passwordfile ~/passwords --port 4248 --host localhost

42 Live Demo asadmin --user admin --passwordfile ~/passwords --port 4248 --host localhost

43 Live Demo asadmin --user admin --passwordfile ~/passwords --port 4248 --host localhost

44 Live Demo asadmin --user admin --passwordfile ~/passwords --port 4248 --host localhost

45 Live Demo asadmin --user admin --passwordfile ~/passwords --port 4248 --host localhost

46 Live Demo create-domain --portbase=4200 --savemasterpassword=true --savelogin=true DAS_02

47 Live Demo create-domain --portbase=4200 --savemasterpassword=true --savelogin=true DAS_02

48 Live Demo create-domain --portbase=4200 --savemasterpassword=true --savelogin=true DAS_02

49 Live Demo create-domain --portbase=4200 --savemasterpassword=true --savelogin=true DAS_02

50 Live Demo create-domain --portbase=4200 --savemasterpassword=true --savelogin=true DAS_02

51 Live Demo start-domain DAS_02

52 Live Demo start-domain DAS_02 stop-domain DAS_02

53 Live Demo start-domain DAS_02 stop-domain DAS_02 restart-domain DAS_02

54 Live Demo enable-secure-admin

55 Live Demo enable-secure-admin restart-domain DAS_02

56 Live Demo https://das001.local:4248/

57 Live Demo create-node-ssh --nodehost 192.168.56.50 --sshuser glassfish --installdir /u00 das02_node001

58 Live Demo create-node-ssh --nodehost 192.168.56.50 --sshuser glassfish --installdir /u00 das02_node001

59 Live Demo create-node-ssh --nodehost 192.168.56.50 --sshuser glassfish --installdir /u00 das02_node001

60 Live Demo create-node-ssh --nodehost 192.168.56.50 --sshuser glassfish --installdir /u00 das02_node001

61 Live Demo create-node-ssh --nodehost 192.168.56.50 --sshuser glassfish --installdir /u00 das02_node001

62 Live Demo create-node-ssh --nodehost 192.168.56.50 --sshuser glassfish --installdir /u00 das02_node001 create-node-ssh --nodehost 192.168.56.51 --sshuser glassfish --installdir /u00 das02_node002

63 Live Demo create-cluster site02

64 Live Demo create-instance --portbase=4200 --cluster site02 --node das02_node001 instance01

65 Live Demo create-instance --portbase=4200 --cluster site02 --node das02_node001 instance01

66 Live Demo create-instance --portbase=4200 --cluster site02 --node das02_node001 instance01

67 Live Demo create-instance --portbase=4200 --cluster site02 --node das02_node001 instance01

68 Live Demo create-instance --portbase=4200 --cluster site02 --node das02_node001 instance01

69 Live Demo create-instance --portbase=4200 --cluster site02 --node das02_node001 instance01 create-instance --portbase=4200 --cluster site02 --node das02_node002 instance02

70 Live Demo scp /root/glassfish3/glassfish/domains/DAS_02/master-password glassfish@192.168.56.50:/u00/glassfish/nodes/das02_node001/agent/master-password

71 Live Demo scp /root/glassfish3/glassfish/domains/DAS_02/master-password glassfish@192.168.56.50:/u00/glassfish/nodes/das02_node001/agent/master-password

72 Live Demo scp /root/glassfish3/glassfish/domains/DAS_02/master-password glassfish@192.168.56.50:/u00/glassfish/nodes/das02_node001/agent/master-password

73 Live Demo scp /root/glassfish3/glassfish/domains/DAS_02/master-password glassfish@192.168.56.50:/u00/glassfish/nodes/das02_node001/agent/master-password

74 Live Demo scp /root/glassfish3/glassfish/domains/DAS_02/master-password glassfish@192.168.56.50:/u00/glassfish/nodes/das02_node001/agent/master-password scp /root/glassfish3/glassfish/domains/DAS_02/master-password glassfish@192.168.56.51:/u00/glassfish/nodes/das02_node002/agent/master-password

75 Live Demo start-cluster site02

76 Live Demo http://node001.local:4280/ http://node002.local:4280/

77 Live Demo stop-instance instance01

78 Live Demo stop-instance instance01 start-instance --sync full instance01

79 Live Demo stop-instance instance01 start-instance --sync full instance01

80 Live Demo stop-instance instance02 start-instance --sync full instance02

81 Live Demo deploy --force --target site02 ords.war

82 Live Demo deploy --force --target site02 ords.war

83 Live Demo deploy --force --target site02 ords.war

84 Live Demo deploy --force --target site02 ords.war

85 Live Demo deploy --force --target site02 ords.war deploy --force --target site02 i.war

86 Live Demo http://node001.local:4280/ords http://node002.local:4280/ords

87 Live Demo ServerName site02.local BalancerMember http://node001.local:4280 BalancerMember http://node002.local:4280 ProxyPass / balancer://glassfish_node_servers/ stickysession=JSESSIONID ProxyPassReverse / balancer://glassfish_node_servers/ ProxyPreserveHost on Order deny,allow Allow from all SetHandler balancer-manager Order Deny,Allow Deny from all # Only allow from internal network Allow from 127.0.0.1 Allow from 192.168.56.0/24 # Custom log file locations ErrorLog "D:\Apache\Apache2.2.GlassFish\logs\site02-error.log" CustomLog "D:\Apache\Apache2.2.GlassFish\logs\site02-access.log" combined

88 Live Demo ServerName site02.local BalancerMember http://node001.local:4280 BalancerMember http://node002.local:4280 ProxyPass / balancer://glassfish_node_servers/ stickysession=JSESSIONID ProxyPassReverse / balancer://glassfish_node_servers/ ProxyPreserveHost on Order deny,allow Allow from all SetHandler balancer-manager Order Deny,Allow Deny from all # Only allow from internal network Allow from 127.0.0.1 Allow from 192.168.56.0/24 # Custom log file locations ErrorLog "D:\Apache\Apache2.2.GlassFish\logs\site02-error.log" CustomLog "D:\Apache\Apache2.2.GlassFish\logs\site02-access.log" combined BalancerMember http://node001.local:4280 BalancerMember http://node002.local:4280

89 Live Demo ServerName site02.local BalancerMember http://node001.local:4280 BalancerMember http://node002.local:4280 ProxyPass / balancer://glassfish_node_servers/ stickysession=JSESSIONID ProxyPassReverse / balancer://glassfish_node_servers/ ProxyPreserveHost on Order deny,allow Allow from all SetHandler balancer-manager Order Deny,Allow Deny from all # Only allow from internal network Allow from 127.0.0.1 Allow from 192.168.56.0/24 # Custom log file locations ErrorLog "D:\Apache\Apache2.2.GlassFish\logs\site02-error.log" CustomLog "D:\Apache\Apache2.2.GlassFish\logs\site02-access.log" combined BalancerMember http://node001.local:4280 BalancerMember http://node002.local:4280

90 Live Demo ServerName site02.local BalancerMember http://node001.local:4280 BalancerMember http://node002.local:4280 ProxyPass / balancer://glassfish_node_servers/ stickysession=JSESSIONID ProxyPassReverse / balancer://glassfish_node_servers/ ProxyPreserveHost on Order deny,allow Allow from all SetHandler balancer-manager Order Deny,Allow Deny from all # Only allow from internal network Allow from 127.0.0.1 Allow from 192.168.56.0/24 # Custom log file locations ErrorLog "D:\Apache\Apache2.2.GlassFish\logs\site02-error.log" CustomLog "D:\Apache\Apache2.2.GlassFish\logs\site02-access.log" combined BalancerMember http://node001.local:4280 BalancerMember http://node002.local:4280

91 Live Demo ServerName site02.local BalancerMember http://node001.local:4280 BalancerMember http://node002.local:4280 ProxyPass / balancer://glassfish_node_servers/ stickysession=JSESSIONID ProxyPassReverse / balancer://glassfish_node_servers/ ProxyPreserveHost on Order deny,allow Allow from all SetHandler balancer-manager Order Deny,Allow Deny from all # Only allow from internal network Allow from 127.0.0.1 Allow from 192.168.56.0/24 # Custom log file locations ErrorLog "D:\Apache\Apache2.2.GlassFish\logs\site02-error.log" CustomLog "D:\Apache\Apache2.2.GlassFish\logs\site02-access.log" combined BalancerMember http://node001.local:4280 BalancerMember http://node002.local:4280

92 Live Demo ServerName site02.local BalancerMember http://node001.local:4280 BalancerMember http://node002.local:4280 ProxyPass / balancer://glassfish_node_servers/ stickysession=JSESSIONID ProxyPassReverse / balancer://glassfish_node_servers/ ProxyPreserveHost on Order deny,allow Allow from all SetHandler balancer-manager Order Deny,Allow Deny from all # Only allow from internal network Allow from 127.0.0.1 Allow from 192.168.56.0/24 # Custom log file locations ErrorLog "D:\Apache\Apache2.2.GlassFish\logs\site02-error.log" CustomLog "D:\Apache\Apache2.2.GlassFish\logs\site02-access.log" combined ProxyPass / balancer://glassfish_node_servers/ stickysession=JSESSIONID

93 Live Demo http://site02.local:8080/ords/f?p=105

94 Live Demo http://site02.local:8080/balancer-manager

95 Load Monitoring

96 GlassFish Performance Tuning

97 Alan Arentsen alan.arentsen@ordina.nl alanarentsen.blogspot.com


Download ppt "APEX power! Alan Arentsen brought to you by GlassFish."

Similar presentations


Ads by Google