Your SlideShare is downloading. ×
  • Like
  • Save

Loading…

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

×

Now you can save presentations on your phone or tablet

Available for both IPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Daniel Sikar: Running Coherence Clustered Cache on Amazon EC2 - 09/11/2010

  • 4,526 views
Published

In this 'In the brain' session speaker Daniel Sikar talks on the topic titled 'Running Coherence Clustered Cache on Amazon EC2'

In this 'In the brain' session speaker Daniel Sikar talks on the topic titled 'Running Coherence Clustered Cache on Amazon EC2'

Published in Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
4,526
On SlideShare
0
From Embeds
0
Number of Embeds
2

Actions

Shares
Downloads
0
Comments
0
Likes
1

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Running Coherence Clustered Cache on Amazon EC2 In The Brain of Daniel Sikar Skills Matter, London, UK 09.11.2010
  • 2. Skills Matter supports the Agile and Open Source developer community, by organising free events, training courses, conferences and by publishing thousands of podcasts on ideas and technologies that drive innovation.
      116-120 Goswell Road, London, EC1V 7DP Tel: +44 (0)207 183 9040 [email_address]
    Welcome to Skills Matter
  • 3. Daniel Sikar Consultant Developer Trainer Internet & scientific data acquisition applications Delivers AWS, Oracle Coherence and Hadoop courses at Skills Matter [email_address]
  • 4. Running Coherence Clustered Cache on Amazon EC2
  • 5.  
  • 6. Why use AWS?
  • 12. EC2 Environment - abridged Regions Instances AMIs Security Groups
  • 13. Regions AP-SOUTHEAST-1 Availability zones: ap-southeast-{1a, 1b} EU-WEST-1 Availability zones: eu-west-{1a, 1b} US-EAST-1 Availability zones: us-east-{1a, 1b, 1c, 1d} US-WEST-1 Availability zones: us-west-{1a, 1b}
  • 14. EC2 Environment - abridged INSTANCES = Running virtual machines AMIs = Virtual machine images SECURITY GROUPS = Firewall configurations
  • 15. Amazon Machine Image (AMI)
  • 16. $ ec2-run-instances (...) ec2-api-tools
  • 17.  
  • 18.  
  • 19. $ env $ cd in $ ls $ ec2-describe-instances $ ec2-describe-images ec2-api-tools
  • 20. AWS Public Images - 31.01.2010
      REGIONS
    • EU-West 1207
    • 21. US-East 4521
    • 22. US-West 343
  • 23. AWS Public Images - 31.01.2010
      Operating Systems
    • Flavours of Unix 5707
    • 24. Windows 364
  • 25. AWS Public Images - 31.01.2010
      Architecture
    • i386 4560
    • 26. x86_64 1511
  • 27. Public AMIs Region/OS/Architecture
  • 28. EU-WEST Top 5 Public AMI Owners
  • 33. US-EAST Top 5 Public AMI Owners
  • 38. US-WEST Top 5 Public AMI Owners
  • 43. Public AMIs $ ec2dim -a > amis.txt $ cat amis.txt | grep moodle $ ping <public dns> $ c:<...>putty.exe
  • 44. Public AMIs TURNKEY SOLUTIONS
  • 45.  
  • 46. Why use caching? Share objects across servers Lower response time Increase throughput Increase availability Distributed/parallel processing Failover
  • 47. Design Patterns
  • 48.
    • JSR-107 JCACHE – Java Temporary Caching API (2001)
    • 49. Tangosol (2000 - 2007)
    • 50. Oracle Coherence (2007 - 2010)
    Coherence timeline
  • 51.
      Coherence Key Concepts
  • 55.
      Coherence Key Concepts
  • 58.
      Coherence Key Concepts
  • 63. Coherence Networking Protocols
      Coherence uses TCMP, a combination of:
    • Multicast
    • 64. Unicast
    • 65. TCP
  • 66. WKA Well-Known-Addresses Used in environments where multicast is not allowed or not suitable.
  • 67. WKA Configuration Command line: -Dtangosol.coherence.wka=<ip address> -Dtangosol.coherence.wka.port=<port number>
  • 68. WKA Configuration Configuration file: <?xml version='1.0'?> <!DOCTYPE coherence SYSTEM &quot;coherence.dtd&quot;> <coherence xml-override=&quot;/tangosol-coherence-override.xml&quot;> < well-known-addresses > <socket-address id=&quot;1&quot;> <address>10.228.22.128</address> < port >8088</port> </socket-address> <socket-address id=&quot;2&quot;> <address>10.228.79.164</address> <port>8088</port> </socket-address> </well-known-addresses> </coherence>
  • 69. EC2AddressProvider Looks for instances with assigned Elastic IP
  • 70. EC2AddressProvider Method Summary accept() determineCredentials() generateWKAList(...) getNextAddress reject(Throwable exception)
  • 71. EC2AddressProvider Authentication of EC2 calls: Java system properties:
    • tangosol.coherence.ec2addressprovider.accesskey=<access key>
    • 72. tangosol.coherence.ec2addressprovider.secretkey=<secret key>
    Embedded properties file:
    • accessKey=<access key>
    • 73. secretKey=<secret key>
  • 74. EC2AddressProvider Libraries:
    • AWS SDK for Java
    • 75. Coherence
    • 76. Coherence Common (Incubator) – class
    • 77. com.oracle.coherence.cloud.amazon.EC2AddressProvider
  • 78. Coherence Clustered Cache + EC2 = Running Coherence on virtual machines
  • 79. Windows EC2 Instance Configuration $ ec2auth default -P icmp -t -1:-1 + Firewall (switch off instance firewall)
  • 80. Accessing a Windows EC2 Instance running Coherence Clustered Caching Access
  • 81. $ ec2-describe-addresses $ mstsc Access
  • 82. # start cache server $ cache-server.cmd # start clients $ coherence.cmd # run # help, cache, put, assert # maps, list, lock, unlock, delete Basic Cache Operations
  • 83. Conclusion Setting up and running Coherence Clustered Cache is simple on PAAS environments such as Amazon EC2
  • 84. Questions?
  • 85. Coming up next Nov-Dec 2010: AWS EC2 S3 Workshop - 1 day 15.11.2010 Coherence Clustered Caching - 2 days 16.12.2010 Coherence Clustered Caching - 2 days 13.12.2010 Introduction to Hadoop - 2 days 20.12.2010 Skills Matter – London, UK
  • 86. Thank you for attending! Running Coherence Clustered Cache on Amazon EC2 In The Brain of Daniel Sikar Skills Matter, London, UK 09.11.2010