Anthony Gelibert - LIG Grenoble   OSGi and Terracotta:State replication of clustered           services
Agenda      • Context      • Terracotta      • OSGi and Terracotta      • Future workSeptember 2010   GELIBERT – OSGi and ...
Agenda      •Context      • Terracotta      • OSGi and Terracotta      • Future workSeptember 2010   GELIBERT – OSGi and T...
About      • Anthony Gelibert           – MSc at Master of Science in Informatics             at Grenoble (2010)          ...
OSGi and distribution      • Distributed execution:           – R-OSGi (Research)           – OSGi Remote Services (Specif...
OSGi and distribution (cont.)      • R-OSGi:         – Transparently invoke distant services         – RMI-like      • OSG...
ObjectiveSeptember 2010   GELIBERT – OSGi and Terracotta: Repliation of states for clustered services   7
Use cases      • Traditional targets of distributed        shared memory:           – State share, Message bus, …      • P...
Agenda      • Context      •Terracotta      • OSGi and Terracotta      • Future workSeptember 2010   GELIBERT – OSGi and T...
Terracotta: N.A.M.      • Network-Attached Memory      • No API      • No Serialization      • Cross-JVM coordination     ...
Terracotta: configuration      • No API: declarative configurationSeptember 2010   GELIBERT – OSGi and Terracotta: Repliat...
Teracotta: no serialization      • Plain POJO clustering      • Dynamic instrumentation through a        Java Agent      •...
Terracotta: D.M.I      • Distributed Method Invocations.      • When a node calls a method, all        nodes replicate it ...
Agenda      • Context      • Terracotta      •OSGi and Terracotta      • Future workSeptember 2010   GELIBERT – OSGi and T...
OSGi and Terracotta: Toolchain      • Delegate class loading from OSGi to        Terracotta.      • A set of Java 5 Annota...
Toolchain (cont.)September 2010   GELIBERT – OSGi and Terracotta: Repliation of states for clustered services   16
Toolchain (cont.)September 2010   GELIBERT – OSGi and Terracotta: Repliation of states for clustered services   17
Validation      • EventAdmin: propagation of events        across multiple platforms.      • Cilia: replication/persistenc...
Agenda      • Context      • Terracotta      • OSGi and Terracotta      •Future workSeptember 2010   GELIBERT – OSGi and T...
Future work      • Extension of the container:           – Enhancement Terracotta integration           – Add persistence,...
For more information     • Terracotta       Documentation, download, …       http://www.terracotta.org       Open Source  ...
THANK YOU FOR YOUR               ATTENTION!                 Contact: anthony.gelibert@me.comSeptember 2010   GELIBERT – OS...
Upcoming SlideShare
Loading in …5
×

OSGi Community Event 2010 — OSGi and Terracotta - Replication of states for clustered services

1,293 views

Published on

Presentation given at OSGi Community Event 2010 concerning my master thesis.

It’s the integration of Terracotta into an OSGi framework to create distributed services, which replicate their internal states.

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,293
On SlideShare
0
From Embeds
0
Number of Embeds
10
Actions
Shares
0
Downloads
11
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

OSGi Community Event 2010 — OSGi and Terracotta - Replication of states for clustered services

  1. 1. Anthony Gelibert - LIG Grenoble OSGi and Terracotta:State replication of clustered services
  2. 2. Agenda • Context • Terracotta • OSGi and Terracotta • Future workSeptember 2010 GELIBERT – OSGi and Terracotta: Repliation of states for clustered services 2
  3. 3. Agenda •Context • Terracotta • OSGi and Terracotta • Future workSeptember 2010 GELIBERT – OSGi and Terracotta: Repliation of states for clustered services 3
  4. 4. About • Anthony Gelibert – MSc at Master of Science in Informatics at Grenoble (2010) – Engineer Degree at École Nationale Supérieure d’Informatique et de Mathématiques Appliquées de Grenoble (2010)September 2010 GELIBERT – OSGi and Terracotta: Repliation of states for clustered services 4
  5. 5. OSGi and distribution • Distributed execution: – R-OSGi (Research) – OSGi Remote Services (Specification) • Distributed deployment: – OSGi4C (Research) • Shared Memory : our approachSeptember 2010 GELIBERT – OSGi and Terracotta: Repliation of states for clustered services 5
  6. 6. OSGi and distribution (cont.) • R-OSGi: – Transparently invoke distant services – RMI-like • OSGi4C: – Distributed bundle deployment – Runs locally • Terracotta: – Shared memorySeptember 2010 GELIBERT – OSGi and Terracotta: Repliation of states for clustered services 6
  7. 7. ObjectiveSeptember 2010 GELIBERT – OSGi and Terracotta: Repliation of states for clustered services 7
  8. 8. Use cases • Traditional targets of distributed shared memory: – State share, Message bus, … • Problems requiring the use of distributed methods. • Re-engineering of existing solutions.September 2010 GELIBERT – OSGi and Terracotta: Repliation of states for clustered services 8
  9. 9. Agenda • Context •Terracotta • OSGi and Terracotta • Future workSeptember 2010 GELIBERT – OSGi and Terracotta: Repliation of states for clustered services 9
  10. 10. Terracotta: N.A.M. • Network-Attached Memory • No API • No Serialization • Cross-JVM coordination • Distributed Method Invocations • Runtime monitoring and controlSeptember 2010 GELIBERT – OSGi and Terracotta: Repliation of states for clustered services 10
  11. 11. Terracotta: configuration • No API: declarative configurationSeptember 2010 GELIBERT – OSGi and Terracotta: Repliation of states for clustered services 11
  12. 12. Teracotta: no serialization • Plain POJO clustering • Dynamic instrumentation through a Java Agent • Fine-grained replicationSeptember 2010 GELIBERT – OSGi and Terracotta: Repliation of states for clustered services 12
  13. 13. Terracotta: D.M.I • Distributed Method Invocations. • When a node calls a method, all nodes replicate it (locally). • Development close to MPI: – The same code is executed at the same time on each node. – Requires distinguishing each element.September 2010 GELIBERT – OSGi and Terracotta: Repliation of states for clustered services 13
  14. 14. Agenda • Context • Terracotta •OSGi and Terracotta • Future workSeptember 2010 GELIBERT – OSGi and Terracotta: Repliation of states for clustered services 14
  15. 15. OSGi and Terracotta: Toolchain • Delegate class loading from OSGi to Terracotta. • A set of Java 5 Annotations. • An APT processor to generate the Terracotta config file.September 2010 GELIBERT – OSGi and Terracotta: Repliation of states for clustered services 15
  16. 16. Toolchain (cont.)September 2010 GELIBERT – OSGi and Terracotta: Repliation of states for clustered services 16
  17. 17. Toolchain (cont.)September 2010 GELIBERT – OSGi and Terracotta: Repliation of states for clustered services 17
  18. 18. Validation • EventAdmin: propagation of events across multiple platforms. • Cilia: replication/persistence in pervasive applications. • H-Omega: Replacement of message passing by a shared memory. • uGASP: State share for a DTN applicationSeptember 2010 GELIBERT – OSGi and Terracotta: Repliation of states for clustered services 18
  19. 19. Agenda • Context • Terracotta • OSGi and Terracotta •Future workSeptember 2010 GELIBERT – OSGi and Terracotta: Repliation of states for clustered services 19
  20. 20. Future work • Extension of the container: – Enhancement Terracotta integration – Add persistence, cache, … • Dynamically update clustered services at run-timeSeptember 2010 GELIBERT – OSGi and Terracotta: Repliation of states for clustered services 20
  21. 21. For more information • Terracotta Documentation, download, … http://www.terracotta.org Open Source http://www.terracotta.org/open-source • Felix http://felix.apache.org • Chameleon http://wiki.chameleon.ow2.orgSeptember 2010 GELIBERT – OSGi and Terracotta: Repliation of states for clustered services 21
  22. 22. THANK YOU FOR YOUR ATTENTION! Contact: anthony.gelibert@me.comSeptember 2010 GELIBERT – OSGi and Terracotta: Repliation of states for clustered services 22

×