Cloud Barcamp Roma: Libero Cloud su Joyent, caratteristiche principali e casi di successo

Post on 15-Jan-2015

563 views 1 download

description

Cloud Libero su piattaforma Joyent, SmartOS, ZFS, tips, CloudAPI e Database by Antonio Bevaqua, Cloud Specialist ITnet

Transcript of Cloud Barcamp Roma: Libero Cloud su Joyent, caratteristiche principali e casi di successo

Buona sera

1

Oggi parleremo di:

• LiberoCloud dietro le quinte• Design Infrastruttura2Cloud

2

3

Antonio Bevacqua

4

La tecnologia dietro

Techology partners

Caratteristiche del Cloud

Caratteristiche del Cloud

ZFS è un file system open source sviluppato dalla Sun Microsystems per il suo sistema operativo SolarisZFS è un file system a 128 bit: può quindi fornire uno spazio di 16 miliardi di miliardi di volte la capacità dei file system a 64 bit.

ZFS rispetta lo standard POSIX in fatto di file system: nessuna applicazione deve essere modificata per funzionare con il nuovo file system.

Caratteristiche del Cloud

Solaris Containers (including Solaris Zones) is an implementation of operating system-level virtualization technology for x86 and SPARC systems, first released publicly in February 2004 in build 51 beta of Solaris 10, and subsequently in the first full release of Solaris 10, 2005. It is present in newer OpenSolaris based distributions, such as OpenIndiana, SmartOS and OmniOS, as well as in the official Oracle Solaris 11 release.A Solaris Container is the combination of system resource controls and the boundary separation provided by zones. Zones act as completely isolated virtual servers within a single operating system instance.

• Virtual network layer• Accesso as root• Separazione fra container• Impossibilità di scalare a

global• OS as dad

SmartOS: The Worlds Most Advanced Operating SystemJoyent SmartOS provides a combination of hardware and operating system (OS) virtualization to support efficient, reliable and high performing cloud computing.•Scale. An ultra-lean hypervisor that produces frictionless scale and fast provisioning.•Trust. The ZFS file system guarantees data integrity and prevent silent data corruption.•Secure. OS virtualization with highly secure zones, and KVM for legacy apps.•Reliable. Run from a live image. Impossible to fail upgrades when you can rollback to an earlier image.•Resilient. Service Management Facility (SMF) recovers faster from system failures. Fair share scheduling, CPU caps, and disk I/O throttling ensures better performance across the Joyent cloud.•Visibility. DTrace, lets you see everything that's happening throughout the software stack - safely, in real time, in production.

Analytics

Cloud-api

http://joyentapi-mi.libero.ithttp://joyentapi-rm.libero.it

Documentazione e guide

http://joyent.com/developers

http://cloud.libero.it/it/supporto/documentazione/

LiberoCloud

15

150+ Servers15 TB of ram

2 PB of Storage30+30Gbit of Internet

3 DatacentersInfrastruttura

Clienti

Sistemi Operativi Virtualizzati

SmartAppliances

SmartAppliances – WE WANT YOU

Il sogno? Il mio sito su HP Libero.it

21

22

23

Linux LVSmodalità DR

500

24

5000/12000

25

Linux LVSmodalità DR

26

5000/12000

27

28

MasterMaster

500

Linux LVSmodalità DR

29

Linux LVSmodalità DR

?

Mysql Native Driver(mysqlnd_ms)

mysqlnd_ms.enable=1 mysqlnd_ms.config_file=/path/to/mysqlnd_ms.ini

Modifico php.ini

{ "myapp": { "master": { "master_0": { "host": "localhost", "socket": "\/tmp\/mysql.sock" } }, "slave": { "slave_0": { "host": "192.168.1.1", "port": "3306" }, "slave_1": { "host": "192.168.1.2", "port": "3306" } } }}

Creo mysqlnd_ms.ini

<?php/* Load balanced following "myapp" section rules from the plugins config file */

$mysqli = new mysqli("myapp", "username", "password", "database");

$pdo = new PDO('mysql:host=myapp;dbname=database', 'username', 'password');

$mysql = mysql_connect("myapp", "username", "password");

?>

1000/4000

34

Quagliamo?

35

• Un'applicazione cloud è cloud perchè progettata per il cloud

• La mia migliore amica: la cache• Staticizzate.. staticizzate... staticizzate!• Il client è il vostro schiavo, sfruttatelo (ajax,

js, .net, ... )• A volte basta fine tuning• Non arrendetevi• Chiedete, noi siamo qui per questo.

Consigli «fraterni»

Grazie

36

cloud.libero.it starthappy.it