Docsity

Open Source Software - Introduction to Enterprise Computing | CS 8803, Study notes of Computer Science

Toggle sidebar
bg1
1
1
CS4803/8803
(soon CS4365/6365)
Intro. Enterprise Computing
12A: Open Source Software
Instructor: Calton Pu
(unofficial) TA: Lenin Singaravelu
2
Traditional Enterprise Software
zHaving someone to yell at when something
goes wrong
โ€“If a vendor is too small to solve a problem, they
may choose to fold instead
โ€“How much liability insurance do you have?
โ€“How much are you willing to pay for it?
zCan we have โ€œfreeโ€ enterprise software?
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download Open Source Software - Introduction to Enterprise Computing | CS 8803 and more Study notes Computer Science in PDF only on Docsity!

1

CS4803/

(soon CS4365/6365)

Intro. Enterprise Computing

12A: Open Source Software

Instructor: Calton Pu

(unofficial) TA: Lenin Singaravelu

Traditional Enterprise Software

z Having someone to yell at when something

goes wrong

  • If a vendor is too small to solve a problem, they may choose to fold instead
  • How much liability insurance do you have?
  • How much are you willing to pay for it?

z Can we have โ€œfreeโ€ enterprise software?

3

Examples of Free Software

z Unix operating systems

  • Free BSD, Linux

z Relational database management systems

  • MySQL, Berkeley DB (also XML)

z Internet and web software

  • Apache/Tomcat web server
  • JBoss app server, JONAS, etc

Unix/Linux History

z 1969: Unix by Thompson/Ritchie

z 1986: Posix standard

z 1989: SVR4 (ATT and SUN) z 199X: SUN Solaris

z 1978: Berkeley (BSD) Unix z 1984: GNU (Free Software Foundation) z 1987: Minix,

  • Andy Tannenbaum z 1991: Linux,
  • Linus Torvalds
  • 1994: Linux 1.
  • 1996: Linux 2.
  • 2001: Linux 2.
  • 2003: Linux 2.

7

IBM and Open Source

z Linux

  • The only OS on all IBM platforms

z Alphaworks

  • Eclipse Java development platform
  • Many other examples (e.g., tools for managing WebSphere)

Slide Credits

z MySQL AB: Zak Breant

z Somewhat dated (2002)

9

What is MySQL?

z General Purpose Open Source RDBMS

  • Optimized for speed, reliability and high load - narrower, deeper feature set.
  • Flexible: Transactional/Non-transactional storage engines

z Extensively used worldwide (more than 10

000 server downloads per day )

  • Low cost of ownership - Dual-licensed under GPL and Commercial licenses
  • Well-supported and documented - easy to install, configure and manage

How MySQL started

z 1995: MySQL development started

z 1996: MySQL 3.11 publicly released

z 1997: First commercial licenses and support

agreement sold

z 2000 : MySQL license changed to GPL

(GNU Public License)

z 2001: MySQL corporate (MySQL AB)

  • Headquarters: Uppsala, Sweden
  • Lead investor ABN Amro (big bank)

13

Program APIs

z ADA

z C

z C++

z Common Lisp

z Delphi

z Dylan

z Guile

z JDBC z MatLab z ODBC z PHP z Pike z Python z TCL z And many more

Storage Engines

z A storage engine is a low level data storage /

retrieval module (disk or memory)

z This allows you to choose locking and speed

tradeoffs per table (instead of when choosing

db!)

z MySQL supported multiple storage engines

from the very beginning

โ€“ CREATE TABLE TYPE=HEAP

โ€“ ALTER TABLE

15

Storage Engine: MyISAM

z Developed by MySQL AB

  • Static, dynamic and compressed (read-only) row formats but no transactions
  • Text and compressed indexes
  • Data and indexes in separate files

z Especially useful for websites & logging

  • Fast read/write performance but low r/w concurrency
  • Good concurrency in the select/append
  • External check and repair (myisamchk)

Storage Engine: InnoDB

z Full transactions (ACID)

  • With row level locking
  • Better concurrency than MyISAM for read/write on the same table
  • Consistent reads (Oracle-style MVCC )
  • Uses tablespaces instead of individual files

z MySQL AB provides support for InnoDB

through a contract with the

creators/developers

z Is included in MySQL 4 & the MySQL Max

19

Storage Engine: BerkeleyDB

z Full transactions (ACID) with page level

locking

z Better concurrency than MyISAM for

read/write on the same table

z Primary key lookups can be faster than

MyISAM

z Data and indexes in one file per table

z Is included in the MySQL Max binary

z Can also be used at a lower level

independent of MySQL

Replication

z MySQL supports many sites that need high reliability

z This is done by replicating the system to many machines

z Examples of users are

  • Yahoo Finance (And other parts of Yahoo)
  • Mobile.de (sells used cars in Germany, Over 270 Million page views per month with 49 MySQL slaves)
  • slashdot.org

21

Replication Technology

z The single Master keeps binary log of SQL commands that update data z Slaves connect to the master or another slave to read, and rerun the updates

z In MySQL 4.0 the slaves use two threads

  • One to read the all queries
  • One to actually do the updates z This makes sure that every slave has all data even if the master goes down while the slave is working on a slow query

22

Case Study (2002)

z Case study: A sweep-stake portal

  • 6 web servers for dynamic content
  • 6 web servers for static content
  • Each dynamic hit involves a database query
  • Platform: LAMP (Linux/Apache/MySQL/PHP)

z In June 2001, the site served 91M pages and

handled 342M hits (max 1M hits/hour)

z Hardware (~15 Machines)

  • Dual Pentium 600 Mhz with 1GB RAM
  • Quad Xeon 700 Mhz with 2 GB RAM

25

Features Being Developed

z Full Foreign keys

z Change server options on the fly (per thread

and globally)

z Secure connections with SSL

z New Key cache with better concurrency

z Boolean operations for fulltext search

z Online backup of MyISAM tables

z Sub-selects

z Fail-safe replication

MyODBC & Windows

z MySQL is actively developed and tested on

Windows

  • But Windows is still not recommended as a high load platform (UNIX performs much better)

z MyODBC actively developed

  • Cursor support
  • Transaction support
  • Lots of small annoying long lived bugs fixed

z ODBC 3.5 compliant driver released January

27

Free/Open Software

z Independence

  • Access to all technical information and not only a vendor chosen subset
  • Any good technical person has the same chance to become a expert as company employees

z Competing commercial services available

z Lower investment in time and money

  • No extra fees for advanced features like replication/free text search

z Result: Low Total Cost of Ownership (?)

Free/Open Advantages

z Community

  • Additional testing, development, business intelligence, etc. resources
  • Find bugs faster, on more platforms
  • Everyone wins - original developers, end users, other software projects
  • Trains and exposes skilled developers

z Strong advantages for all users - including proprietary users

  • Less risk
  • Deep integration is much easier