SlideShare uma empresa Scribd logo
1 de 38
Baixar para ler offline
Eddie	
  Garcia,	
  
VP	
  of	
  InfoSec	
  and	
  Services	
  
	
  
Sam	
  Heywood	
  
VP	
  of	
  Products	
  and	
  Marke<ng	
  
I/O	
  Performance	
  tuning	
  for	
  Cassandra	
  
running	
  on	
  AWS	
  with	
  Gazzang	
  
Which	
  is	
  faster?	
  
3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 2
•  2012	
  Kawasaki	
  Ninja	
  ZX-­‐14	
  /	
  ZZR1400	
  
	
  
•  2013	
  Mclaren	
  P1	
  
•  2011	
  Boeing	
  747-­‐8	
  	
  
DEFINE	
  FASTER?	
  0	
  TO	
  60	
  MPH?	
  
Engineering	
  approach	
  
3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 3
Which	
  is	
  faster?	
  
3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 4
•  2012	
  Kawasaki	
  Ninja	
  ZX-­‐14	
  /	
  ZZR1400	
  
–  0	
  to	
  60	
  in	
  2.5	
  seconds	
  
	
  
•  2013	
  Mclaren	
  P1	
  
–  0	
  to	
  60	
  in	
  2.8	
  seconds	
  
	
  
•  2011	
  Boeing	
  747-­‐8	
  
–  0	
  to	
  60	
  in	
  10-­‐20	
  seconds	
  
DEFINE	
  FASTER?	
  TOP	
  SPEED?	
  
Engineering	
  approach	
  
3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 5
Which	
  is	
  faster?	
  
3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 6
•  2012	
  Kawasaki	
  Ninja	
  ZX-­‐14	
  /	
  ZZR1400	
  
–  Top	
  Speed	
  186	
  mph	
  
	
  
•  2013	
  Mclaren	
  P1	
  
–  Top	
  Speed	
  217.5	
  mph	
  
	
  
•  2011	
  Boeing	
  747-­‐8	
  
–  Top	
  Speed	
  614	
  mph	
  
Today’s	
  Agenda	
  
•  Tips	
  and	
  Tricks	
  to	
  achieve	
  high	
  performance	
  when	
  running	
  
Cassandra	
  on	
  AWS	
  
•  ConfiguraXon	
  tuning	
  for	
  Cassandra	
  
•  Tools	
  to	
  benchmark	
  raw	
  file	
  system	
  I/O	
  
•  AWS	
  available	
  AMIs	
  to	
  boost	
  performance	
  
•  Stress	
  tesXng	
  on	
  AWS	
  i2	
  HVM	
  instances	
  
•  Configuring	
  AWS	
  EC2	
  instances	
  with	
  SSDs	
  and	
  EBS	
  storage	
  
with	
  PIOPS	
  
3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 7
Performance	
  tuning	
  
• Tuning	
  at	
  every	
  layer	
  
– Tune	
  the	
  AWS	
  layer	
  
– Tune	
  the	
  Cassandra	
  layer	
  
– Tune	
  the	
  file	
  system	
  /	
  security	
  layer	
  
3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 8
 
Tune	
  the	
  AWS	
  layer	
  
	
  	
  
3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 9
Tune	
  the	
  AWS	
  layer	
  
•  i2	
  HVM	
  instances	
  will	
  provide	
  be^er	
  I/O	
  over	
  other	
  instance	
  
types	
  
•  i2	
  instances	
  will	
  support	
  SSD	
  TRIM	
  for	
  be^er	
  SDD	
  health	
  and	
  
performance	
  over	
  Xme	
  
•  Use	
  Amazon	
  Linux	
  distribuXon	
  AMI	
  or	
  kernel	
  version	
  3.8	
  and	
  
greater	
  for	
  higher	
  I/O	
  performance	
  
•  Use	
  Amazon	
  Linux	
  distribuXon	
  AMI	
  for	
  built-­‐in	
  SR-­‐IOV	
  (single	
  
root	
  I/O	
  virtualizaXon)	
  drivers	
  to	
  enable	
  higher	
  performance	
  
AWS	
  Enhanced	
  Networking	
  when	
  running	
  in	
  a	
  VPC	
  
3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 10
Amazon	
  Linux	
  AMI	
  Instance	
  Types	
  and	
  Sizes	
  
3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 11
http://aws.amazon.com/amazon-linux-ami/
Amazon	
  Linux	
  AMI	
  Instance	
  Types	
  and	
  Cost	
  
on-­‐demand	
  in	
  US	
  East	
  
3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 12
http://aws.amazon.com/ec2/pricing/
 
Tune	
  the	
  Cassandra	
  layer	
  
	
  	
  
3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 13
Tune	
  the	
  Cassandra	
  layer	
  
•  Follow	
  DataStax	
  published	
  Cassandra	
  best	
  pracXces	
  
h^p://www.datastax.com/documentaXon/cassandra/2.0/cassandra/install/installRecommendSefngs.html	
  
•  Data	
  directory	
  should	
  go	
  on	
  the	
  mounted	
  ephemeral	
  instance	
  
storage,	
  avoid	
  EBS	
  storage	
  for	
  maximum	
  I/O	
  performance	
  
•  IMPORTANT:	
  You	
  must	
  have	
  a	
  backup	
  strategy	
  when	
  using	
  
ephemeral,	
  for	
  example	
  using	
  S3	
  for	
  backups	
  
•  RAID-­‐0	
  (stripe)	
  of	
  SSDs	
  is	
  supported	
  but	
  Cassandra	
  also	
  does	
  a	
  
great	
  job	
  of	
  using	
  all	
  mounted	
  drives	
  without	
  RAID	
  
•  Scale	
  by	
  adding	
  smaller	
  instances	
  vs.	
  increasing	
  instance	
  size	
  
3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 14
Tune	
  the	
  Cassandra	
  layer	
  
•  Cassandra	
  writes	
  immutable	
  sstable	
  files	
  to	
  disk.	
  	
  It	
  then	
  
compacts	
  mulXple	
  sstables	
  into	
  1	
  larger	
  sstable	
  with	
  some	
  
cleanup	
  occurring	
  along	
  the	
  way	
  which	
  also	
  helps	
  TRIM	
  	
  
•  More	
  OS	
  memory	
  the	
  be^er,	
  on	
  read	
  the	
  sstables	
  are	
  cached	
  
as	
  normal	
  memory	
  mapped	
  file	
  loaded	
  into	
  OS	
  memory	
  
•  Increasing	
  the	
  JVM	
  heap	
  size	
  can	
  cause	
  performance	
  issues	
  for	
  
Cassandra	
  during	
  garbage	
  collecXon	
  “Death	
  by	
  Garbage	
  
CollecXon”	
  
3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 15
Tune	
  the	
  Cassandra	
  layer	
  
•  AddiXonal	
  DataStax	
  recommendaXons	
  
–  For	
  EC2	
  
•  h^p://www.datastax.com/documentaXon/cassandra/2.0/webhelp/cassandra/
architecture/architecturePlanningEC2_c.html	
  
–  AnX-­‐pa^erns	
  
•  h^p://www.datastax.com/documentaXon/cassandra/2.0/webhelp/cassandra/
architecture/architecturePlanningAnXPa^erns_c.html	
  
–  Hardware	
  
•  h^p://www.datastax.com/documentaXon/cassandra/2.0/webhelp/cassandra/
architecture/architecturePlanningHardware_c.html	
  
3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 16
 
Tune	
  the	
  file	
  system	
  /	
  security	
  layer	
  
	
  	
  
3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 17
Tune	
  the	
  file	
  system	
  layer	
  
•  Format	
  the	
  file	
  system	
  with	
  ext4	
  vs	
  ext3	
  or	
  xfs	
  if	
  supported	
  by	
  
your	
  chosen	
  Linux	
  distribuXon	
  
•  Use	
  the	
  most	
  current	
  Linux	
  version	
  for	
  your	
  distribuXon,	
  many	
  
performance	
  fixes	
  are	
  supported	
  only	
  in	
  newer	
  kernels	
  
•  Use	
  IOZone	
  or	
  other	
  file	
  system	
  tests	
  before	
  and	
  amer	
  
configuraXons	
  to	
  benchmark	
  raw	
  file	
  I/O	
  before	
  loading	
  your	
  
Cassandra	
  data	
  
3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 18
Tune	
  the	
  file	
  security	
  layer	
  
•  Use	
  Block	
  Level	
  encrypXon	
  dedicaXng	
  enXre	
  SSD	
  volume	
  
•  Encrypt	
  the	
  cluster	
  before	
  loading	
  data	
  whenever	
  possible	
  
•  Use	
  systems	
  that	
  support	
  hardware	
  encrypXon	
  acceleraXon	
  
like	
  Intel	
  AES-­‐NI	
  h^p://aws.amazon.com/ec2/instance-­‐types	
  
3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 19
 
	
  
	
  
Test	
  and	
  measure	
  
	
  	
  
3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 20
Performance	
  Tes<ng	
  
•  When	
  tesXng	
  performance	
  reduce	
  the	
  number	
  of	
  variables	
  
that	
  can	
  affect	
  the	
  test	
  
–  Stopping	
  and	
  stopping	
  a	
  server	
  can	
  switch	
  your	
  instance	
  to	
  a	
  different	
  
host	
  with	
  different	
  performance	
  
–  Time	
  of	
  day	
  when	
  you	
  run	
  tests	
  can	
  affect	
  the	
  performance	
  
–  Eliminate	
  cached	
  in	
  memory	
  data	
  from	
  prior	
  tests	
  which	
  may	
  
contaminate	
  your	
  results	
  
–  Avoid	
  tesXng	
  on	
  systems	
  with	
  unknown	
  state	
  and	
  size	
  of	
  data	
  
3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 21
Cassandra	
  Test	
  Environment	
  
3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 22
Cassandra	
  
Stress	
  Client	
  
Cassandra	
  
Node	
  1	
  
Cassandra	
  
Node	
  2	
  
Cassandra	
  
Node	
  3	
  
Cassandra	
  
Node	
  4	
  
Cassandra	
  
Node	
  5	
  
Cassandra	
  
Node	
  6	
  
EBS	
  Clear	
  text	
  
EBS	
  4K	
  PIOPS	
  
SSD	
  Clear	
  text	
  
SSD	
  Encrypted	
  
IOZone Tests
Cassandra
Stress Tests
S3	
  
Backups	
  
Test	
  Environment	
  Specifica<ons	
  
Instance:	
  i2.2xlarge 	
   	
  	
  
AZ:	
  us-­‐east-­‐1a	
  
AMI	
  InformaXon:	
  amzn-­‐ami-­‐hvm-­‐2013.09.2.x86_64-­‐ebs	
  (ami-­‐e9a18d80)	
  
Linux	
  DistribuXon:	
  Amazon	
  Linux	
  AMI	
  release	
  2013.09	
  
Kernel	
  Version:	
  3.4.73-­‐64.112.amzn1.x86_64	
  
Drive	
  Layout:	
  
	
  	
  	
  	
  Filesystem	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  Size	
  	
  Used	
  Avail	
  Use%	
  Mounted	
  on	
  
	
  	
  	
  	
  /dev/xvda1	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  7.9G	
  	
  1.8G	
  	
  6.1G	
  	
  23%	
  /	
   	
  (EBS	
  backed	
  for	
  tests,	
  ephemeral	
  is	
  be^er)	
  
	
  	
  	
  	
  tmpfs	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  30G	
  	
  	
  	
  	
  0	
  	
  	
  30G	
  	
  	
  0%	
  /dev/shm	
  
	
  	
  	
  	
  /dev/xvdb	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  734G	
  	
  197M	
  	
  697G	
  	
  	
  1%	
  /mount/ssd1	
   	
  (Cleartext	
  test	
  SSD)	
  
	
  	
  	
  	
  /dev/mapper/encrypted	
  734G	
  	
  	
  36G	
  	
  662G	
  	
  	
  6%	
  /encrypted	
   	
  (Encrypted	
  test	
  SSD)	
  
	
  
Cassandra	
  Stress	
  Client	
  –	
  m1.medium	
  
	
  
Cassandra	
  Cluster:	
  6	
  Nodes	
  
DataStax	
  enterprise:	
  dse-­‐libcassandra-­‐3.2.2-­‐1.noarch	
  
Cassandra:	
  version	
  1.2.12.2	
  	
  
Java	
  HotSpot(TM)	
  64-­‐Bit	
  Server	
  VM/1.6.0_45	
  
	
  
3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 23
IOZone	
  SSD	
  vs.	
  Non-­‐SSD	
  
IOZone	
  test	
  configuraXon	
  
Xme	
  iozone	
  -­‐ORa	
  -­‐s	
  163840	
  -­‐r	
  16384	
  
	
  	
  	
  	
  	
  Iozone:	
  Performance	
  Test	
  of	
  File	
  I/O	
  
	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  Version	
  $Revision:	
  3.420	
  $	
  
	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  Compiled	
  for	
  64	
  bit	
  mode.	
  
	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  Build:	
  linux-­‐AMD64	
  
	
  
	
  	
  	
  	
  	
  OPS	
  Mode.	
  Output	
  is	
  in	
  operaXons	
  per	
  second.	
  
	
  	
  	
  	
  	
  Excel	
  chart	
  generaXon	
  enabled	
  
	
  	
  	
  	
  	
  Auto	
  Mode	
  
	
  	
  	
  	
  	
  File	
  size	
  set	
  to	
  163840	
  KB	
  
	
  	
  	
  	
  	
  Record	
  Size	
  16384	
  KB	
  
	
  	
  	
  	
  	
  Command	
  line	
  used:	
  iozone	
  -­‐ORa	
  -­‐s	
  163840	
  -­‐r	
  16384	
  
	
  	
  	
  	
  	
  Time	
  ResoluXon	
  =	
  0.000001	
  seconds.	
  
	
  	
  	
  	
  	
  Processor	
  cache	
  size	
  set	
  to	
  1024	
  Kbytes.	
  
	
  	
  	
  	
  	
  Processor	
  cache	
  line	
  size	
  set	
  to	
  32	
  bytes.	
  
	
  	
  	
  	
  	
  File	
  stride	
  size	
  set	
  to	
  17	
  *	
  record	
  size.	
  
3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 24
http://www.iozone.org/
IOZone	
  SSD	
  vs.	
  Non-­‐SSD	
  
Clear	
  text	
  test	
  on	
  default	
  EBS	
  root	
  parXXon	
  (control/baseline)	
  
	
  
	
  
	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  random	
  	
  random	
  	
  	
  	
  bkwd	
  	
  	
  record	
  	
  	
  stride	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  
	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  KB	
  	
  reclen	
  	
  	
  write	
  rewrite	
  	
  	
  	
  read	
  	
  	
  	
  reread	
  	
  	
  	
  read	
  	
  	
  write	
  	
  	
  	
  read	
  	
  rewrite	
  	
  	
  	
  	
  read	
  	
  	
  fwrite	
  frewrite	
  	
  	
  fread	
  	
  freread	
  
	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  163840	
  	
  	
  16384	
  	
  	
  	
  	
  100	
  	
  	
  	
  	
  164	
  	
  	
  	
  	
  	
  278	
  	
  	
  	
  	
  	
  281	
  	
  	
  	
  	
  278	
  	
  	
  	
  	
  176	
  	
  	
  	
  	
  270	
  	
  	
  	
  	
  	
  195	
  	
  	
  	
  	
  	
  273	
  	
  	
  	
  	
  	
  135	
  	
  	
  	
  	
  	
  140	
  	
  	
  	
  	
  265	
  	
  	
  	
  	
  	
  263	
  
	
  
	
  
real	
  	
  	
  	
  	
  1m6.360s	
  
user	
  	
  	
  	
  	
  0m0.084s	
  
sys	
  	
  	
  	
  	
  0m0.911s	
  
3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 25
IOZone	
  SSD	
  vs.	
  Non-­‐SSD	
  
EncrypXon	
  test	
  on	
  EBS	
  w/PIOPS	
  4,000	
  and	
  ebs	
  opXmized	
  
	
  
	
  
	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  random	
  	
  random	
  	
  	
  	
  bkwd	
  	
  	
  record	
  	
  	
  stride	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  
	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  KB	
  	
  reclen	
  	
  	
  write	
  rewrite	
  	
  	
  	
  read	
  	
  	
  	
  reread	
  	
  	
  	
  read	
  	
  	
  write	
  	
  	
  	
  read	
  	
  rewrite	
  	
  	
  	
  	
  read	
  	
  	
  fwrite	
  frewrite	
  	
  	
  fread	
  	
  freread	
  
	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  163840	
  	
  	
  16384	
  	
  	
  	
  	
  	
  98	
  	
  	
  	
  	
  168	
  	
  	
  	
  	
  	
  293	
  	
  	
  	
  	
  	
  296	
  	
  	
  	
  	
  295	
  	
  	
  	
  	
  178	
  	
  	
  	
  	
  290	
  	
  	
  	
  	
  	
  196	
  	
  	
  	
  	
  	
  291	
  	
  	
  	
  	
  	
  138	
  	
  	
  	
  	
  	
  144	
  	
  	
  	
  	
  279	
  	
  	
  	
  	
  	
  285	
  
	
  
	
  
real	
  	
  	
  	
  	
  0m15.223s	
  
user	
  	
  	
  	
  	
  0m0.115s	
  
sys	
  	
  	
  	
  	
  0m1.391s	
  
3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 26
IOZone	
  SSD	
  vs.	
  Non-­‐SSD	
  
EncrypXon	
  test	
  on	
  SSD	
  
	
  
	
  
	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  random	
  	
  random	
  	
  	
  	
  bkwd	
  	
  	
  record	
  	
  	
  stride	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  
	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  KB	
  	
  reclen	
  	
  	
  write	
  rewrite	
  	
  	
  	
  read	
  	
  	
  	
  reread	
  	
  	
  	
  read	
  	
  	
  write	
  	
  	
  	
  read	
  	
  rewrite	
  	
  	
  	
  	
  read	
  	
  	
  fwrite	
  frewrite	
  	
  	
  fread	
  	
  freread	
  
	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  163840	
  	
  	
  16384	
  	
  	
  	
  	
  	
  99	
  	
  	
  	
  	
  167	
  	
  	
  	
  	
  	
  291	
  	
  	
  	
  	
  	
  296	
  	
  	
  	
  	
  298	
  	
  	
  	
  	
  178	
  	
  	
  	
  	
  292	
  	
  	
  	
  	
  	
  195	
  	
  	
  	
  	
  	
  292	
  	
  	
  	
  	
  	
  138	
  	
  	
  	
  	
  	
  144	
  	
  	
  	
  	
  291	
  	
  	
  	
  	
  	
  297	
  
	
  
	
  
real	
  	
  	
  	
  	
  0m9.951s	
  
user	
  	
  	
  	
  	
  0m0.291s	
  
sys	
  	
  	
  	
  	
  0m3.595s	
  
3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 27
Cassandra	
  Test	
  Environment	
  
3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 28
Cassandra	
  
Node	
  	
  
EBS	
  Clear	
  text	
  
EBS	
  4K	
  PIOPS	
  
encrypted	
  
SSD	
  
SSD	
  Encrypted	
  
IOZone Tests
real 1m6.360s
user 0m0.084s
sys 0m0.911s
real 0m15.223s
user 0m0.115s
sys 0m1.391s
real 0m9.951s
user 0m0.291s
sys 0m3.595s
I/O	
  gap	
  reduced	
  with	
  larger	
  file	
  and	
  record	
  sizes	
  
3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 29
0	
  
50	
  
100	
  
150	
  
200	
  
250	
  
256	
   512	
   1024	
   2048	
   4096	
   8192	
   16384	
  
Test	
  Write	
  clear	
  text	
  vs	
  zNcrypt-­‐block	
  vs	
  zNcrypt-­‐file	
  
8	
  MB	
  file	
  
rootclear8192	
  
data2dm	
  8192	
  
data1ec	
  8192	
  
Clear text
Block encryption
File encryption
KB/s
MB (record size)
Cassandra	
  stress	
  
The	
  cassandra-­‐stress	
  tool	
  
•  A	
  Java-­‐based	
  stress	
  tesXng	
  uXlity	
  for	
  benchmarking	
  and	
  load	
  tesXng	
  
a	
  Cassandra	
  cluster.	
  
•  The	
  binary	
  installaXon	
  of	
  the	
  tool	
  also	
  includes	
  a	
  daemon,	
  which	
  in	
  
larger-­‐scale	
  tesXng	
  can	
  prevent	
  potenXal	
  skews	
  in	
  the	
  test	
  results	
  by	
  
keeping	
  the	
  JVM	
  warm.	
  
•  Modes	
  of	
  operaXon:	
  
–  InserXng:	
  Loads	
  test	
  data.	
  
–  Reading:	
  Reads	
  test	
  data.	
  
–  Indexed	
  range	
  slicing:	
  Works	
  with	
  RandomParXXoner	
  on	
  indexed	
  tables.	
  
3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 30
http://www.datastax.com/documentation/cassandra/2.0/cassandra/tools/
toolsCStress_t.html
Current	
  Cassandra	
  stress	
  test	
  configura<on	
  
•  Cassandra	
  stress	
  test	
  command	
  
–  <cassandra	
  home>/tools/bin/cassandra-­‐stress	
  -­‐l	
  3	
  -­‐o	
  insert	
  -­‐n	
  
100000000	
  -­‐i	
  1	
  -­‐e	
  ONE	
  -­‐c	
  10	
  -­‐d	
  <Cassandra	
  Node	
  IPs>	
  -­‐t	
  150	
  -­‐f	
  
T1.csv	
  &	
  
•  In	
  the	
  stress	
  test,	
  client	
  stress	
  test	
  nodes	
  1	
  –	
  3	
  will	
  target	
  two	
  
separate	
  Cassandra	
  nodes.	
  On	
  client	
  node	
  #4,	
  target	
  all	
  Cassandra	
  
nodes.	
  
–  Client#1	
  —>	
  CAS	
  1,	
  2	
  
–  Client#2	
  —>	
  CAS	
  3,	
  4	
  
–  Client#3	
  —>	
  CAS	
  5,	
  6	
  
–  Client#4	
  —>	
  CAS	
  1,	
  2,	
  3,	
  4,	
  5,	
  6	
  
3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 31
Cassandra	
  Test	
  Environment	
  
3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 32
Stress	
  	
  
Client	
  1	
  
Cassandra	
  
Node	
  1	
  
Cassandra	
  
Node	
  2	
  
Cassandra	
  
Node	
  3	
  
Cassandra	
  
Node	
  4	
  
Cassandra	
  
Node	
  5	
  
Cassandra	
  
Node	
  6	
  
SSD	
  Clear	
  text	
  
SSD	
  Encrypted	
  
Cassandra
Stress Tests
Stress	
  	
  
Client	
  2	
  
Stress	
  	
  
Client	
  3	
  
Stress	
  	
  
Client	
  4	
  
Benchmark	
  clear	
  text	
  vs	
  encrypted	
  inserts	
  (write)	
  
3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 33
Summary	
  
•  Test	
  in	
  your	
  environment	
  with	
  your	
  data,	
  results	
  will	
  vary	
  
greatly	
  on	
  OS,	
  HW	
  and	
  applicaXon	
  configuraXons	
  
–  Baseline	
  before	
  you	
  tune	
  
–  Tune	
  
–  Test	
  amer	
  tuning	
  
–  Measure	
  
–  Rinse	
  and	
  repeat	
  twice	
  
	
  
•  Security	
  and	
  Performance	
  are	
  not	
  mutually	
  exclusive,	
  
encrypXon	
  can	
  coexist	
  with	
  High	
  I/O	
  performance	
  
	
  
•  Do	
  your	
  homework,	
  configure	
  and	
  run	
  tests	
  that	
  map	
  to	
  your	
  
use	
  case	
  
3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 34
• Headquartered	
  in	
  AusXn,	
  Texas	
  
• Focus	
  on	
  securing	
  sensiXve	
  data	
  in	
  cloud	
  
and	
  big	
  data	
  environments	
  
• Enable	
  customers	
  to	
  meet	
  compliance	
  	
  
requirements	
  like	
  HIPAA,	
  PCI,	
  FIPS	
  and	
  
FERPA	
  
• SaXsfy	
  internal	
  security	
  mandates	
  
• Protect	
  valuable	
  client	
  informaXon	
  
About	
  Gazzang	
  
Gazzang	
  is	
  focused	
  on	
  data	
  at-­‐rest	
  encrypXon	
  
	
  
Security	
  in	
  the	
  cloud	
  is	
  a	
  layered	
  approach	
  
363/26/14 Gazzang - All rights reserved 2013
Data	
  in	
  process	
  (in	
  applica<on)	
  
Data	
  at	
  rest	
  (storage)	
  
Data	
  in	
  transit	
  (SSL)	
  
and	
  key	
  management	
  
	
  
373/26/14 Gazzang - All rights reserved 2013
Security	
  in	
  the	
  cloud	
  is	
  a	
  layered	
  approach	
  
Data	
  in	
  process	
  (in	
  applica<on)	
  
Data	
  at	
  rest	
  (storage)	
  
Data	
  in	
  transit	
  (SSL)	
  
Thank	
  you!	
  
Gazzang,	
  Inc	
  
www.gazzang.com	
  	
  
	
  
Eddie	
  Garcia	
  
VP	
  of	
  InfoSec	
  and	
  Services	
  
eddie.garcia@gazzang.com	
  
	
  
Sam	
  Heywood	
  
VP	
  of	
  Products	
  and	
  MarkeXng	
  
sam.heywood@gazzang.com	
  
	
  
3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 38
Airport Race
Porsche 911 GT3 Cup vs Boeing 747
http://www.youtube.com/watch?v=duOlJa5Vjdo

Mais conteúdo relacionado

Mais procurados

Ceph Day San Jose - All-Flahs Ceph on NUMA-Balanced Server
Ceph Day San Jose - All-Flahs Ceph on NUMA-Balanced Server Ceph Day San Jose - All-Flahs Ceph on NUMA-Balanced Server
Ceph Day San Jose - All-Flahs Ceph on NUMA-Balanced Server Ceph Community
 
Ceph Day San Jose - Red Hat Storage Acceleration Utlizing Flash Technology
Ceph Day San Jose - Red Hat Storage Acceleration Utlizing Flash TechnologyCeph Day San Jose - Red Hat Storage Acceleration Utlizing Flash Technology
Ceph Day San Jose - Red Hat Storage Acceleration Utlizing Flash TechnologyCeph Community
 
Ceph Day San Jose - Object Storage for Big Data
Ceph Day San Jose - Object Storage for Big Data Ceph Day San Jose - Object Storage for Big Data
Ceph Day San Jose - Object Storage for Big Data Ceph Community
 
Journey to Stability: Petabyte Ceph Cluster in OpenStack Cloud
Journey to Stability: Petabyte Ceph Cluster in OpenStack CloudJourney to Stability: Petabyte Ceph Cluster in OpenStack Cloud
Journey to Stability: Petabyte Ceph Cluster in OpenStack CloudPatrick McGarry
 
2016-JAN-28 -- High Performance Production Databases on Ceph
2016-JAN-28 -- High Performance Production Databases on Ceph2016-JAN-28 -- High Performance Production Databases on Ceph
2016-JAN-28 -- High Performance Production Databases on CephCeph Community
 
Ceph Day Beijing - Our journey to high performance large scale Ceph cluster a...
Ceph Day Beijing - Our journey to high performance large scale Ceph cluster a...Ceph Day Beijing - Our journey to high performance large scale Ceph cluster a...
Ceph Day Beijing - Our journey to high performance large scale Ceph cluster a...Danielle Womboldt
 
Ceph Day Melbourne - Ceph on All-Flash Storage - Breaking Performance Barriers
Ceph Day Melbourne - Ceph on All-Flash Storage - Breaking Performance BarriersCeph Day Melbourne - Ceph on All-Flash Storage - Breaking Performance Barriers
Ceph Day Melbourne - Ceph on All-Flash Storage - Breaking Performance BarriersCeph Community
 
Ceph Day San Jose - Ceph at Salesforce
Ceph Day San Jose - Ceph at Salesforce Ceph Day San Jose - Ceph at Salesforce
Ceph Day San Jose - Ceph at Salesforce Ceph Community
 
Ceph Day Melbourne - Walk Through a Software Defined Everything PoC
Ceph Day Melbourne - Walk Through a Software Defined Everything PoCCeph Day Melbourne - Walk Through a Software Defined Everything PoC
Ceph Day Melbourne - Walk Through a Software Defined Everything PoCCeph Community
 
Ceph on All Flash Storage -- Breaking Performance Barriers
Ceph on All Flash Storage -- Breaking Performance BarriersCeph on All Flash Storage -- Breaking Performance Barriers
Ceph on All Flash Storage -- Breaking Performance BarriersCeph Community
 
Enterprise Storage NAS - Dual Controller
Enterprise Storage NAS - Dual ControllerEnterprise Storage NAS - Dual Controller
Enterprise Storage NAS - Dual ControllerFernando Barrientos
 
Ceph Day Melbourne - Troubleshooting Ceph
Ceph Day Melbourne - Troubleshooting Ceph Ceph Day Melbourne - Troubleshooting Ceph
Ceph Day Melbourne - Troubleshooting Ceph Ceph Community
 

Mais procurados (14)

Ceph Day San Jose - All-Flahs Ceph on NUMA-Balanced Server
Ceph Day San Jose - All-Flahs Ceph on NUMA-Balanced Server Ceph Day San Jose - All-Flahs Ceph on NUMA-Balanced Server
Ceph Day San Jose - All-Flahs Ceph on NUMA-Balanced Server
 
Ceph Day San Jose - Red Hat Storage Acceleration Utlizing Flash Technology
Ceph Day San Jose - Red Hat Storage Acceleration Utlizing Flash TechnologyCeph Day San Jose - Red Hat Storage Acceleration Utlizing Flash Technology
Ceph Day San Jose - Red Hat Storage Acceleration Utlizing Flash Technology
 
Ceph Day San Jose - Object Storage for Big Data
Ceph Day San Jose - Object Storage for Big Data Ceph Day San Jose - Object Storage for Big Data
Ceph Day San Jose - Object Storage for Big Data
 
Journey to Stability: Petabyte Ceph Cluster in OpenStack Cloud
Journey to Stability: Petabyte Ceph Cluster in OpenStack CloudJourney to Stability: Petabyte Ceph Cluster in OpenStack Cloud
Journey to Stability: Petabyte Ceph Cluster in OpenStack Cloud
 
2016-JAN-28 -- High Performance Production Databases on Ceph
2016-JAN-28 -- High Performance Production Databases on Ceph2016-JAN-28 -- High Performance Production Databases on Ceph
2016-JAN-28 -- High Performance Production Databases on Ceph
 
Ceph Day Beijing - Our journey to high performance large scale Ceph cluster a...
Ceph Day Beijing - Our journey to high performance large scale Ceph cluster a...Ceph Day Beijing - Our journey to high performance large scale Ceph cluster a...
Ceph Day Beijing - Our journey to high performance large scale Ceph cluster a...
 
Ceph Day Melbourne - Ceph on All-Flash Storage - Breaking Performance Barriers
Ceph Day Melbourne - Ceph on All-Flash Storage - Breaking Performance BarriersCeph Day Melbourne - Ceph on All-Flash Storage - Breaking Performance Barriers
Ceph Day Melbourne - Ceph on All-Flash Storage - Breaking Performance Barriers
 
Ceph Day San Jose - Ceph at Salesforce
Ceph Day San Jose - Ceph at Salesforce Ceph Day San Jose - Ceph at Salesforce
Ceph Day San Jose - Ceph at Salesforce
 
MySQL Head-to-Head
MySQL Head-to-HeadMySQL Head-to-Head
MySQL Head-to-Head
 
Ceph Day Melbourne - Walk Through a Software Defined Everything PoC
Ceph Day Melbourne - Walk Through a Software Defined Everything PoCCeph Day Melbourne - Walk Through a Software Defined Everything PoC
Ceph Day Melbourne - Walk Through a Software Defined Everything PoC
 
Ceph on All Flash Storage -- Breaking Performance Barriers
Ceph on All Flash Storage -- Breaking Performance BarriersCeph on All Flash Storage -- Breaking Performance Barriers
Ceph on All Flash Storage -- Breaking Performance Barriers
 
Enterprise Storage NAS - Dual Controller
Enterprise Storage NAS - Dual ControllerEnterprise Storage NAS - Dual Controller
Enterprise Storage NAS - Dual Controller
 
TDS-16489U - Dual Processor
TDS-16489U - Dual ProcessorTDS-16489U - Dual Processor
TDS-16489U - Dual Processor
 
Ceph Day Melbourne - Troubleshooting Ceph
Ceph Day Melbourne - Troubleshooting Ceph Ceph Day Melbourne - Troubleshooting Ceph
Ceph Day Melbourne - Troubleshooting Ceph
 

Destaque

C* Summit 2013: Practice Makes Perfect: Extreme Cassandra Optimization by Alb...
C* Summit 2013: Practice Makes Perfect: Extreme Cassandra Optimization by Alb...C* Summit 2013: Practice Makes Perfect: Extreme Cassandra Optimization by Alb...
C* Summit 2013: Practice Makes Perfect: Extreme Cassandra Optimization by Alb...DataStax Academy
 
Cassandra Summit 2014: Performance Tuning Cassandra in AWS
Cassandra Summit 2014: Performance Tuning Cassandra in AWSCassandra Summit 2014: Performance Tuning Cassandra in AWS
Cassandra Summit 2014: Performance Tuning Cassandra in AWSDataStax Academy
 
Linux Performance Analysis: New Tools and Old Secrets
Linux Performance Analysis: New Tools and Old SecretsLinux Performance Analysis: New Tools and Old Secrets
Linux Performance Analysis: New Tools and Old SecretsBrendan Gregg
 
Linux Systems Performance 2016
Linux Systems Performance 2016Linux Systems Performance 2016
Linux Systems Performance 2016Brendan Gregg
 
Broken Linux Performance Tools 2016
Broken Linux Performance Tools 2016Broken Linux Performance Tools 2016
Broken Linux Performance Tools 2016Brendan Gregg
 
BPF: Tracing and more
BPF: Tracing and moreBPF: Tracing and more
BPF: Tracing and moreBrendan Gregg
 
Velocity 2015 linux perf tools
Velocity 2015 linux perf toolsVelocity 2015 linux perf tools
Velocity 2015 linux perf toolsBrendan Gregg
 
Linux Profiling at Netflix
Linux Profiling at NetflixLinux Profiling at Netflix
Linux Profiling at NetflixBrendan Gregg
 

Destaque (8)

C* Summit 2013: Practice Makes Perfect: Extreme Cassandra Optimization by Alb...
C* Summit 2013: Practice Makes Perfect: Extreme Cassandra Optimization by Alb...C* Summit 2013: Practice Makes Perfect: Extreme Cassandra Optimization by Alb...
C* Summit 2013: Practice Makes Perfect: Extreme Cassandra Optimization by Alb...
 
Cassandra Summit 2014: Performance Tuning Cassandra in AWS
Cassandra Summit 2014: Performance Tuning Cassandra in AWSCassandra Summit 2014: Performance Tuning Cassandra in AWS
Cassandra Summit 2014: Performance Tuning Cassandra in AWS
 
Linux Performance Analysis: New Tools and Old Secrets
Linux Performance Analysis: New Tools and Old SecretsLinux Performance Analysis: New Tools and Old Secrets
Linux Performance Analysis: New Tools and Old Secrets
 
Linux Systems Performance 2016
Linux Systems Performance 2016Linux Systems Performance 2016
Linux Systems Performance 2016
 
Broken Linux Performance Tools 2016
Broken Linux Performance Tools 2016Broken Linux Performance Tools 2016
Broken Linux Performance Tools 2016
 
BPF: Tracing and more
BPF: Tracing and moreBPF: Tracing and more
BPF: Tracing and more
 
Velocity 2015 linux perf tools
Velocity 2015 linux perf toolsVelocity 2015 linux perf tools
Velocity 2015 linux perf tools
 
Linux Profiling at Netflix
Linux Profiling at NetflixLinux Profiling at Netflix
Linux Profiling at Netflix
 

Semelhante a San Francisco Cassadnra Meetup - March 2014: I/O Performance tuning on AWS for Cassandra with Gazzang

Load Testing Cassandra Applications
Load Testing Cassandra Applications Load Testing Cassandra Applications
Load Testing Cassandra Applications Instaclustr
 
Load testing Cassandra applications
Load testing Cassandra applicationsLoad testing Cassandra applications
Load testing Cassandra applicationsBen Slater
 
Load Testing Cassandra Applications (Ben Slater, Instaclustr) | C* Summit 2016
Load Testing Cassandra Applications (Ben Slater, Instaclustr) | C* Summit 2016Load Testing Cassandra Applications (Ben Slater, Instaclustr) | C* Summit 2016
Load Testing Cassandra Applications (Ben Slater, Instaclustr) | C* Summit 2016DataStax
 
Deep Dive on Amazon EC2 Instances - AWS Summit Cape Town 2017
Deep Dive on Amazon EC2 Instances - AWS Summit Cape Town 2017Deep Dive on Amazon EC2 Instances - AWS Summit Cape Town 2017
Deep Dive on Amazon EC2 Instances - AWS Summit Cape Town 2017Amazon Web Services
 
Running your Java EE 6 Applications in the Cloud
Running your Java EE 6 Applications in the CloudRunning your Java EE 6 Applications in the Cloud
Running your Java EE 6 Applications in the CloudArun Gupta
 
Understanding Oracle RAC 12c Internals OOW13 [CON8806]
Understanding Oracle RAC 12c Internals OOW13 [CON8806]Understanding Oracle RAC 12c Internals OOW13 [CON8806]
Understanding Oracle RAC 12c Internals OOW13 [CON8806]Markus Michalewicz
 
JFokus 2011 - Running your Java EE 6 apps in the Cloud
JFokus 2011 - Running your Java EE 6 apps in the CloudJFokus 2011 - Running your Java EE 6 apps in the Cloud
JFokus 2011 - Running your Java EE 6 apps in the CloudArun Gupta
 
ShadowReader - Serverless load tests for replaying production traffic
ShadowReader - Serverless load tests for replaying production trafficShadowReader - Serverless load tests for replaying production traffic
ShadowReader - Serverless load tests for replaying production trafficYuki Sawa
 
Running your Java EE 6 Apps in the Cloud - JavaOne India 2011
Running your Java EE 6 Apps in the Cloud - JavaOne India 2011Running your Java EE 6 Apps in the Cloud - JavaOne India 2011
Running your Java EE 6 Apps in the Cloud - JavaOne India 2011Arun Gupta
 
JavaOne India 2011 - Running your Java EE 6 Apps in the Cloud
JavaOne India 2011 - Running your Java EE 6 Apps in the CloudJavaOne India 2011 - Running your Java EE 6 Apps in the Cloud
JavaOne India 2011 - Running your Java EE 6 Apps in the CloudArun Gupta
 
Running your Java EE 6 applications in the Cloud
Running your Java EE 6 applications in the CloudRunning your Java EE 6 applications in the Cloud
Running your Java EE 6 applications in the CloudArun Gupta
 
Running your Java EE 6 applications in the cloud
Running your Java EE 6 applications in the cloudRunning your Java EE 6 applications in the cloud
Running your Java EE 6 applications in the cloudArun Gupta
 
Javaee6 Jazoon 2010 100603081147 Phpapp01
Javaee6 Jazoon 2010 100603081147 Phpapp01Javaee6 Jazoon 2010 100603081147 Phpapp01
Javaee6 Jazoon 2010 100603081147 Phpapp01MindTree Ltd
 
Re:Invent 2019 Recap. AWS User Groups in Spain. Javier Ramirez
 Re:Invent 2019 Recap. AWS User Groups in Spain. Javier Ramirez Re:Invent 2019 Recap. AWS User Groups in Spain. Javier Ramirez
Re:Invent 2019 Recap. AWS User Groups in Spain. Javier Ramirezjavier ramirez
 
Riga DevDays 2017 - Efficient AWS Lambda
Riga DevDays 2017 - Efficient AWS LambdaRiga DevDays 2017 - Efficient AWS Lambda
Riga DevDays 2017 - Efficient AWS LambdaAntons Kranga
 
Sas a peek_into_the_future_marty_czekalski
Sas a peek_into_the_future_marty_czekalskiSas a peek_into_the_future_marty_czekalski
Sas a peek_into_the_future_marty_czekalskiscsibeast
 
Benchmarking top IaaS providers - A practical study
Benchmarking top IaaS providers - A practical studyBenchmarking top IaaS providers - A practical study
Benchmarking top IaaS providers - A practical studyKeerthi Balasundram
 
Benchmarking top IaaS providers - A practical study
Benchmarking top IaaS providers -  A practical studyBenchmarking top IaaS providers -  A practical study
Benchmarking top IaaS providers - A practical studyKeerthi Balasundram
 
데이터 마이그레이션 AWS와 같이하기 - 김일호 솔루션즈 아키텍트:: AWS Cloud Track 3 Gaming
데이터 마이그레이션 AWS와 같이하기 - 김일호 솔루션즈 아키텍트:: AWS Cloud Track 3 Gaming데이터 마이그레이션 AWS와 같이하기 - 김일호 솔루션즈 아키텍트:: AWS Cloud Track 3 Gaming
데이터 마이그레이션 AWS와 같이하기 - 김일호 솔루션즈 아키텍트:: AWS Cloud Track 3 GamingAmazon Web Services Korea
 

Semelhante a San Francisco Cassadnra Meetup - March 2014: I/O Performance tuning on AWS for Cassandra with Gazzang (20)

Load Testing Cassandra Applications
Load Testing Cassandra Applications Load Testing Cassandra Applications
Load Testing Cassandra Applications
 
Load testing Cassandra applications
Load testing Cassandra applicationsLoad testing Cassandra applications
Load testing Cassandra applications
 
Load Testing Cassandra Applications (Ben Slater, Instaclustr) | C* Summit 2016
Load Testing Cassandra Applications (Ben Slater, Instaclustr) | C* Summit 2016Load Testing Cassandra Applications (Ben Slater, Instaclustr) | C* Summit 2016
Load Testing Cassandra Applications (Ben Slater, Instaclustr) | C* Summit 2016
 
Deep Dive on Amazon EC2 Instances - AWS Summit Cape Town 2017
Deep Dive on Amazon EC2 Instances - AWS Summit Cape Town 2017Deep Dive on Amazon EC2 Instances - AWS Summit Cape Town 2017
Deep Dive on Amazon EC2 Instances - AWS Summit Cape Town 2017
 
Running your Java EE 6 Applications in the Cloud
Running your Java EE 6 Applications in the CloudRunning your Java EE 6 Applications in the Cloud
Running your Java EE 6 Applications in the Cloud
 
Understanding Oracle RAC 12c Internals OOW13 [CON8806]
Understanding Oracle RAC 12c Internals OOW13 [CON8806]Understanding Oracle RAC 12c Internals OOW13 [CON8806]
Understanding Oracle RAC 12c Internals OOW13 [CON8806]
 
JFokus 2011 - Running your Java EE 6 apps in the Cloud
JFokus 2011 - Running your Java EE 6 apps in the CloudJFokus 2011 - Running your Java EE 6 apps in the Cloud
JFokus 2011 - Running your Java EE 6 apps in the Cloud
 
EMCSymmetrix vmax-10
EMCSymmetrix vmax-10EMCSymmetrix vmax-10
EMCSymmetrix vmax-10
 
ShadowReader - Serverless load tests for replaying production traffic
ShadowReader - Serverless load tests for replaying production trafficShadowReader - Serverless load tests for replaying production traffic
ShadowReader - Serverless load tests for replaying production traffic
 
Running your Java EE 6 Apps in the Cloud - JavaOne India 2011
Running your Java EE 6 Apps in the Cloud - JavaOne India 2011Running your Java EE 6 Apps in the Cloud - JavaOne India 2011
Running your Java EE 6 Apps in the Cloud - JavaOne India 2011
 
JavaOne India 2011 - Running your Java EE 6 Apps in the Cloud
JavaOne India 2011 - Running your Java EE 6 Apps in the CloudJavaOne India 2011 - Running your Java EE 6 Apps in the Cloud
JavaOne India 2011 - Running your Java EE 6 Apps in the Cloud
 
Running your Java EE 6 applications in the Cloud
Running your Java EE 6 applications in the CloudRunning your Java EE 6 applications in the Cloud
Running your Java EE 6 applications in the Cloud
 
Running your Java EE 6 applications in the cloud
Running your Java EE 6 applications in the cloudRunning your Java EE 6 applications in the cloud
Running your Java EE 6 applications in the cloud
 
Javaee6 Jazoon 2010 100603081147 Phpapp01
Javaee6 Jazoon 2010 100603081147 Phpapp01Javaee6 Jazoon 2010 100603081147 Phpapp01
Javaee6 Jazoon 2010 100603081147 Phpapp01
 
Re:Invent 2019 Recap. AWS User Groups in Spain. Javier Ramirez
 Re:Invent 2019 Recap. AWS User Groups in Spain. Javier Ramirez Re:Invent 2019 Recap. AWS User Groups in Spain. Javier Ramirez
Re:Invent 2019 Recap. AWS User Groups in Spain. Javier Ramirez
 
Riga DevDays 2017 - Efficient AWS Lambda
Riga DevDays 2017 - Efficient AWS LambdaRiga DevDays 2017 - Efficient AWS Lambda
Riga DevDays 2017 - Efficient AWS Lambda
 
Sas a peek_into_the_future_marty_czekalski
Sas a peek_into_the_future_marty_czekalskiSas a peek_into_the_future_marty_czekalski
Sas a peek_into_the_future_marty_czekalski
 
Benchmarking top IaaS providers - A practical study
Benchmarking top IaaS providers - A practical studyBenchmarking top IaaS providers - A practical study
Benchmarking top IaaS providers - A practical study
 
Benchmarking top IaaS providers - A practical study
Benchmarking top IaaS providers -  A practical studyBenchmarking top IaaS providers -  A practical study
Benchmarking top IaaS providers - A practical study
 
데이터 마이그레이션 AWS와 같이하기 - 김일호 솔루션즈 아키텍트:: AWS Cloud Track 3 Gaming
데이터 마이그레이션 AWS와 같이하기 - 김일호 솔루션즈 아키텍트:: AWS Cloud Track 3 Gaming데이터 마이그레이션 AWS와 같이하기 - 김일호 솔루션즈 아키텍트:: AWS Cloud Track 3 Gaming
데이터 마이그레이션 AWS와 같이하기 - 김일호 솔루션즈 아키텍트:: AWS Cloud Track 3 Gaming
 

Mais de DataStax Academy

Forrester CXNYC 2017 - Delivering great real-time cx is a true craft
Forrester CXNYC 2017 - Delivering great real-time cx is a true craftForrester CXNYC 2017 - Delivering great real-time cx is a true craft
Forrester CXNYC 2017 - Delivering great real-time cx is a true craftDataStax Academy
 
Introduction to DataStax Enterprise Graph Database
Introduction to DataStax Enterprise Graph DatabaseIntroduction to DataStax Enterprise Graph Database
Introduction to DataStax Enterprise Graph DatabaseDataStax Academy
 
Introduction to DataStax Enterprise Advanced Replication with Apache Cassandra
Introduction to DataStax Enterprise Advanced Replication with Apache CassandraIntroduction to DataStax Enterprise Advanced Replication with Apache Cassandra
Introduction to DataStax Enterprise Advanced Replication with Apache CassandraDataStax Academy
 
Cassandra on Docker @ Walmart Labs
Cassandra on Docker @ Walmart LabsCassandra on Docker @ Walmart Labs
Cassandra on Docker @ Walmart LabsDataStax Academy
 
Cassandra 3.0 Data Modeling
Cassandra 3.0 Data ModelingCassandra 3.0 Data Modeling
Cassandra 3.0 Data ModelingDataStax Academy
 
Cassandra Adoption on Cisco UCS & Open stack
Cassandra Adoption on Cisco UCS & Open stackCassandra Adoption on Cisco UCS & Open stack
Cassandra Adoption on Cisco UCS & Open stackDataStax Academy
 
Data Modeling for Apache Cassandra
Data Modeling for Apache CassandraData Modeling for Apache Cassandra
Data Modeling for Apache CassandraDataStax Academy
 
Production Ready Cassandra
Production Ready CassandraProduction Ready Cassandra
Production Ready CassandraDataStax Academy
 
Cassandra @ Netflix: Monitoring C* at Scale, Gossip and Tickler & Python
Cassandra @ Netflix: Monitoring C* at Scale, Gossip and Tickler & PythonCassandra @ Netflix: Monitoring C* at Scale, Gossip and Tickler & Python
Cassandra @ Netflix: Monitoring C* at Scale, Gossip and Tickler & PythonDataStax Academy
 
Cassandra @ Sony: The good, the bad, and the ugly part 1
Cassandra @ Sony: The good, the bad, and the ugly part 1Cassandra @ Sony: The good, the bad, and the ugly part 1
Cassandra @ Sony: The good, the bad, and the ugly part 1DataStax Academy
 
Cassandra @ Sony: The good, the bad, and the ugly part 2
Cassandra @ Sony: The good, the bad, and the ugly part 2Cassandra @ Sony: The good, the bad, and the ugly part 2
Cassandra @ Sony: The good, the bad, and the ugly part 2DataStax Academy
 
Standing Up Your First Cluster
Standing Up Your First ClusterStanding Up Your First Cluster
Standing Up Your First ClusterDataStax Academy
 
Real Time Analytics with Dse
Real Time Analytics with DseReal Time Analytics with Dse
Real Time Analytics with DseDataStax Academy
 
Introduction to Data Modeling with Apache Cassandra
Introduction to Data Modeling with Apache CassandraIntroduction to Data Modeling with Apache Cassandra
Introduction to Data Modeling with Apache CassandraDataStax Academy
 
Enabling Search in your Cassandra Application with DataStax Enterprise
Enabling Search in your Cassandra Application with DataStax EnterpriseEnabling Search in your Cassandra Application with DataStax Enterprise
Enabling Search in your Cassandra Application with DataStax EnterpriseDataStax Academy
 
Advanced Data Modeling with Apache Cassandra
Advanced Data Modeling with Apache CassandraAdvanced Data Modeling with Apache Cassandra
Advanced Data Modeling with Apache CassandraDataStax Academy
 

Mais de DataStax Academy (20)

Forrester CXNYC 2017 - Delivering great real-time cx is a true craft
Forrester CXNYC 2017 - Delivering great real-time cx is a true craftForrester CXNYC 2017 - Delivering great real-time cx is a true craft
Forrester CXNYC 2017 - Delivering great real-time cx is a true craft
 
Introduction to DataStax Enterprise Graph Database
Introduction to DataStax Enterprise Graph DatabaseIntroduction to DataStax Enterprise Graph Database
Introduction to DataStax Enterprise Graph Database
 
Introduction to DataStax Enterprise Advanced Replication with Apache Cassandra
Introduction to DataStax Enterprise Advanced Replication with Apache CassandraIntroduction to DataStax Enterprise Advanced Replication with Apache Cassandra
Introduction to DataStax Enterprise Advanced Replication with Apache Cassandra
 
Cassandra on Docker @ Walmart Labs
Cassandra on Docker @ Walmart LabsCassandra on Docker @ Walmart Labs
Cassandra on Docker @ Walmart Labs
 
Cassandra 3.0 Data Modeling
Cassandra 3.0 Data ModelingCassandra 3.0 Data Modeling
Cassandra 3.0 Data Modeling
 
Cassandra Adoption on Cisco UCS & Open stack
Cassandra Adoption on Cisco UCS & Open stackCassandra Adoption on Cisco UCS & Open stack
Cassandra Adoption on Cisco UCS & Open stack
 
Data Modeling for Apache Cassandra
Data Modeling for Apache CassandraData Modeling for Apache Cassandra
Data Modeling for Apache Cassandra
 
Coursera Cassandra Driver
Coursera Cassandra DriverCoursera Cassandra Driver
Coursera Cassandra Driver
 
Production Ready Cassandra
Production Ready CassandraProduction Ready Cassandra
Production Ready Cassandra
 
Cassandra @ Netflix: Monitoring C* at Scale, Gossip and Tickler & Python
Cassandra @ Netflix: Monitoring C* at Scale, Gossip and Tickler & PythonCassandra @ Netflix: Monitoring C* at Scale, Gossip and Tickler & Python
Cassandra @ Netflix: Monitoring C* at Scale, Gossip and Tickler & Python
 
Cassandra @ Sony: The good, the bad, and the ugly part 1
Cassandra @ Sony: The good, the bad, and the ugly part 1Cassandra @ Sony: The good, the bad, and the ugly part 1
Cassandra @ Sony: The good, the bad, and the ugly part 1
 
Cassandra @ Sony: The good, the bad, and the ugly part 2
Cassandra @ Sony: The good, the bad, and the ugly part 2Cassandra @ Sony: The good, the bad, and the ugly part 2
Cassandra @ Sony: The good, the bad, and the ugly part 2
 
Standing Up Your First Cluster
Standing Up Your First ClusterStanding Up Your First Cluster
Standing Up Your First Cluster
 
Real Time Analytics with Dse
Real Time Analytics with DseReal Time Analytics with Dse
Real Time Analytics with Dse
 
Introduction to Data Modeling with Apache Cassandra
Introduction to Data Modeling with Apache CassandraIntroduction to Data Modeling with Apache Cassandra
Introduction to Data Modeling with Apache Cassandra
 
Cassandra Core Concepts
Cassandra Core ConceptsCassandra Core Concepts
Cassandra Core Concepts
 
Enabling Search in your Cassandra Application with DataStax Enterprise
Enabling Search in your Cassandra Application with DataStax EnterpriseEnabling Search in your Cassandra Application with DataStax Enterprise
Enabling Search in your Cassandra Application with DataStax Enterprise
 
Bad Habits Die Hard
Bad Habits Die Hard Bad Habits Die Hard
Bad Habits Die Hard
 
Advanced Data Modeling with Apache Cassandra
Advanced Data Modeling with Apache CassandraAdvanced Data Modeling with Apache Cassandra
Advanced Data Modeling with Apache Cassandra
 
Advanced Cassandra
Advanced CassandraAdvanced Cassandra
Advanced Cassandra
 

Último

How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 

Último (20)

How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 

San Francisco Cassadnra Meetup - March 2014: I/O Performance tuning on AWS for Cassandra with Gazzang

  • 1. Eddie  Garcia,   VP  of  InfoSec  and  Services     Sam  Heywood   VP  of  Products  and  Marke<ng   I/O  Performance  tuning  for  Cassandra   running  on  AWS  with  Gazzang  
  • 2. Which  is  faster?   3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 2 •  2012  Kawasaki  Ninja  ZX-­‐14  /  ZZR1400     •  2013  Mclaren  P1   •  2011  Boeing  747-­‐8    
  • 3. DEFINE  FASTER?  0  TO  60  MPH?   Engineering  approach   3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 3
  • 4. Which  is  faster?   3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 4 •  2012  Kawasaki  Ninja  ZX-­‐14  /  ZZR1400   –  0  to  60  in  2.5  seconds     •  2013  Mclaren  P1   –  0  to  60  in  2.8  seconds     •  2011  Boeing  747-­‐8   –  0  to  60  in  10-­‐20  seconds  
  • 5. DEFINE  FASTER?  TOP  SPEED?   Engineering  approach   3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 5
  • 6. Which  is  faster?   3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 6 •  2012  Kawasaki  Ninja  ZX-­‐14  /  ZZR1400   –  Top  Speed  186  mph     •  2013  Mclaren  P1   –  Top  Speed  217.5  mph     •  2011  Boeing  747-­‐8   –  Top  Speed  614  mph  
  • 7. Today’s  Agenda   •  Tips  and  Tricks  to  achieve  high  performance  when  running   Cassandra  on  AWS   •  ConfiguraXon  tuning  for  Cassandra   •  Tools  to  benchmark  raw  file  system  I/O   •  AWS  available  AMIs  to  boost  performance   •  Stress  tesXng  on  AWS  i2  HVM  instances   •  Configuring  AWS  EC2  instances  with  SSDs  and  EBS  storage   with  PIOPS   3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 7
  • 8. Performance  tuning   • Tuning  at  every  layer   – Tune  the  AWS  layer   – Tune  the  Cassandra  layer   – Tune  the  file  system  /  security  layer   3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 8
  • 9.   Tune  the  AWS  layer       3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 9
  • 10. Tune  the  AWS  layer   •  i2  HVM  instances  will  provide  be^er  I/O  over  other  instance   types   •  i2  instances  will  support  SSD  TRIM  for  be^er  SDD  health  and   performance  over  Xme   •  Use  Amazon  Linux  distribuXon  AMI  or  kernel  version  3.8  and   greater  for  higher  I/O  performance   •  Use  Amazon  Linux  distribuXon  AMI  for  built-­‐in  SR-­‐IOV  (single   root  I/O  virtualizaXon)  drivers  to  enable  higher  performance   AWS  Enhanced  Networking  when  running  in  a  VPC   3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 10
  • 11. Amazon  Linux  AMI  Instance  Types  and  Sizes   3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 11 http://aws.amazon.com/amazon-linux-ami/
  • 12. Amazon  Linux  AMI  Instance  Types  and  Cost   on-­‐demand  in  US  East   3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 12 http://aws.amazon.com/ec2/pricing/
  • 13.   Tune  the  Cassandra  layer       3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 13
  • 14. Tune  the  Cassandra  layer   •  Follow  DataStax  published  Cassandra  best  pracXces   h^p://www.datastax.com/documentaXon/cassandra/2.0/cassandra/install/installRecommendSefngs.html   •  Data  directory  should  go  on  the  mounted  ephemeral  instance   storage,  avoid  EBS  storage  for  maximum  I/O  performance   •  IMPORTANT:  You  must  have  a  backup  strategy  when  using   ephemeral,  for  example  using  S3  for  backups   •  RAID-­‐0  (stripe)  of  SSDs  is  supported  but  Cassandra  also  does  a   great  job  of  using  all  mounted  drives  without  RAID   •  Scale  by  adding  smaller  instances  vs.  increasing  instance  size   3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 14
  • 15. Tune  the  Cassandra  layer   •  Cassandra  writes  immutable  sstable  files  to  disk.    It  then   compacts  mulXple  sstables  into  1  larger  sstable  with  some   cleanup  occurring  along  the  way  which  also  helps  TRIM     •  More  OS  memory  the  be^er,  on  read  the  sstables  are  cached   as  normal  memory  mapped  file  loaded  into  OS  memory   •  Increasing  the  JVM  heap  size  can  cause  performance  issues  for   Cassandra  during  garbage  collecXon  “Death  by  Garbage   CollecXon”   3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 15
  • 16. Tune  the  Cassandra  layer   •  AddiXonal  DataStax  recommendaXons   –  For  EC2   •  h^p://www.datastax.com/documentaXon/cassandra/2.0/webhelp/cassandra/ architecture/architecturePlanningEC2_c.html   –  AnX-­‐pa^erns   •  h^p://www.datastax.com/documentaXon/cassandra/2.0/webhelp/cassandra/ architecture/architecturePlanningAnXPa^erns_c.html   –  Hardware   •  h^p://www.datastax.com/documentaXon/cassandra/2.0/webhelp/cassandra/ architecture/architecturePlanningHardware_c.html   3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 16
  • 17.   Tune  the  file  system  /  security  layer       3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 17
  • 18. Tune  the  file  system  layer   •  Format  the  file  system  with  ext4  vs  ext3  or  xfs  if  supported  by   your  chosen  Linux  distribuXon   •  Use  the  most  current  Linux  version  for  your  distribuXon,  many   performance  fixes  are  supported  only  in  newer  kernels   •  Use  IOZone  or  other  file  system  tests  before  and  amer   configuraXons  to  benchmark  raw  file  I/O  before  loading  your   Cassandra  data   3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 18
  • 19. Tune  the  file  security  layer   •  Use  Block  Level  encrypXon  dedicaXng  enXre  SSD  volume   •  Encrypt  the  cluster  before  loading  data  whenever  possible   •  Use  systems  that  support  hardware  encrypXon  acceleraXon   like  Intel  AES-­‐NI  h^p://aws.amazon.com/ec2/instance-­‐types   3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 19
  • 20.       Test  and  measure       3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 20
  • 21. Performance  Tes<ng   •  When  tesXng  performance  reduce  the  number  of  variables   that  can  affect  the  test   –  Stopping  and  stopping  a  server  can  switch  your  instance  to  a  different   host  with  different  performance   –  Time  of  day  when  you  run  tests  can  affect  the  performance   –  Eliminate  cached  in  memory  data  from  prior  tests  which  may   contaminate  your  results   –  Avoid  tesXng  on  systems  with  unknown  state  and  size  of  data   3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 21
  • 22. Cassandra  Test  Environment   3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 22 Cassandra   Stress  Client   Cassandra   Node  1   Cassandra   Node  2   Cassandra   Node  3   Cassandra   Node  4   Cassandra   Node  5   Cassandra   Node  6   EBS  Clear  text   EBS  4K  PIOPS   SSD  Clear  text   SSD  Encrypted   IOZone Tests Cassandra Stress Tests S3   Backups  
  • 23. Test  Environment  Specifica<ons   Instance:  i2.2xlarge       AZ:  us-­‐east-­‐1a   AMI  InformaXon:  amzn-­‐ami-­‐hvm-­‐2013.09.2.x86_64-­‐ebs  (ami-­‐e9a18d80)   Linux  DistribuXon:  Amazon  Linux  AMI  release  2013.09   Kernel  Version:  3.4.73-­‐64.112.amzn1.x86_64   Drive  Layout:          Filesystem                        Size    Used  Avail  Use%  Mounted  on          /dev/xvda1                        7.9G    1.8G    6.1G    23%  /    (EBS  backed  for  tests,  ephemeral  is  be^er)          tmpfs                                    30G          0      30G      0%  /dev/shm          /dev/xvdb                          734G    197M    697G      1%  /mount/ssd1    (Cleartext  test  SSD)          /dev/mapper/encrypted  734G      36G    662G      6%  /encrypted    (Encrypted  test  SSD)     Cassandra  Stress  Client  –  m1.medium     Cassandra  Cluster:  6  Nodes   DataStax  enterprise:  dse-­‐libcassandra-­‐3.2.2-­‐1.noarch   Cassandra:  version  1.2.12.2     Java  HotSpot(TM)  64-­‐Bit  Server  VM/1.6.0_45     3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 23
  • 24. IOZone  SSD  vs.  Non-­‐SSD   IOZone  test  configuraXon   Xme  iozone  -­‐ORa  -­‐s  163840  -­‐r  16384            Iozone:  Performance  Test  of  File  I/O                            Version  $Revision:  3.420  $                      Compiled  for  64  bit  mode.                      Build:  linux-­‐AMD64              OPS  Mode.  Output  is  in  operaXons  per  second.            Excel  chart  generaXon  enabled            Auto  Mode            File  size  set  to  163840  KB            Record  Size  16384  KB            Command  line  used:  iozone  -­‐ORa  -­‐s  163840  -­‐r  16384            Time  ResoluXon  =  0.000001  seconds.            Processor  cache  size  set  to  1024  Kbytes.            Processor  cache  line  size  set  to  32  bytes.            File  stride  size  set  to  17  *  record  size.   3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 24 http://www.iozone.org/
  • 25. IOZone  SSD  vs.  Non-­‐SSD   Clear  text  test  on  default  EBS  root  parXXon  (control/baseline)                                                                                                                              random    random        bkwd      record      stride                                                                                                  KB    reclen      write  rewrite        read        reread        read      write        read    rewrite          read      fwrite  frewrite      fread    freread                      163840      16384          100          164            278            281          278          176          270            195            273            135            140          265            263       real          1m6.360s   user          0m0.084s   sys          0m0.911s   3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 25
  • 26. IOZone  SSD  vs.  Non-­‐SSD   EncrypXon  test  on  EBS  w/PIOPS  4,000  and  ebs  opXmized                                                                                                                              random    random        bkwd      record      stride                                                                                                  KB    reclen      write  rewrite        read        reread        read      write        read    rewrite          read      fwrite  frewrite      fread    freread                      163840      16384            98          168            293            296          295          178          290            196            291            138            144          279            285       real          0m15.223s   user          0m0.115s   sys          0m1.391s   3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 26
  • 27. IOZone  SSD  vs.  Non-­‐SSD   EncrypXon  test  on  SSD                                                                                                                              random    random        bkwd      record      stride                                                                                                  KB    reclen      write  rewrite        read        reread        read      write        read    rewrite          read      fwrite  frewrite      fread    freread                      163840      16384            99          167            291            296          298          178          292            195            292            138            144          291            297       real          0m9.951s   user          0m0.291s   sys          0m3.595s   3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 27
  • 28. Cassandra  Test  Environment   3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 28 Cassandra   Node     EBS  Clear  text   EBS  4K  PIOPS   encrypted   SSD   SSD  Encrypted   IOZone Tests real 1m6.360s user 0m0.084s sys 0m0.911s real 0m15.223s user 0m0.115s sys 0m1.391s real 0m9.951s user 0m0.291s sys 0m3.595s
  • 29. I/O  gap  reduced  with  larger  file  and  record  sizes   3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 29 0   50   100   150   200   250   256   512   1024   2048   4096   8192   16384   Test  Write  clear  text  vs  zNcrypt-­‐block  vs  zNcrypt-­‐file   8  MB  file   rootclear8192   data2dm  8192   data1ec  8192   Clear text Block encryption File encryption KB/s MB (record size)
  • 30. Cassandra  stress   The  cassandra-­‐stress  tool   •  A  Java-­‐based  stress  tesXng  uXlity  for  benchmarking  and  load  tesXng   a  Cassandra  cluster.   •  The  binary  installaXon  of  the  tool  also  includes  a  daemon,  which  in   larger-­‐scale  tesXng  can  prevent  potenXal  skews  in  the  test  results  by   keeping  the  JVM  warm.   •  Modes  of  operaXon:   –  InserXng:  Loads  test  data.   –  Reading:  Reads  test  data.   –  Indexed  range  slicing:  Works  with  RandomParXXoner  on  indexed  tables.   3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 30 http://www.datastax.com/documentation/cassandra/2.0/cassandra/tools/ toolsCStress_t.html
  • 31. Current  Cassandra  stress  test  configura<on   •  Cassandra  stress  test  command   –  <cassandra  home>/tools/bin/cassandra-­‐stress  -­‐l  3  -­‐o  insert  -­‐n   100000000  -­‐i  1  -­‐e  ONE  -­‐c  10  -­‐d  <Cassandra  Node  IPs>  -­‐t  150  -­‐f   T1.csv  &   •  In  the  stress  test,  client  stress  test  nodes  1  –  3  will  target  two   separate  Cassandra  nodes.  On  client  node  #4,  target  all  Cassandra   nodes.   –  Client#1  —>  CAS  1,  2   –  Client#2  —>  CAS  3,  4   –  Client#3  —>  CAS  5,  6   –  Client#4  —>  CAS  1,  2,  3,  4,  5,  6   3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 31
  • 32. Cassandra  Test  Environment   3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 32 Stress     Client  1   Cassandra   Node  1   Cassandra   Node  2   Cassandra   Node  3   Cassandra   Node  4   Cassandra   Node  5   Cassandra   Node  6   SSD  Clear  text   SSD  Encrypted   Cassandra Stress Tests Stress     Client  2   Stress     Client  3   Stress     Client  4  
  • 33. Benchmark  clear  text  vs  encrypted  inserts  (write)   3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 33
  • 34. Summary   •  Test  in  your  environment  with  your  data,  results  will  vary   greatly  on  OS,  HW  and  applicaXon  configuraXons   –  Baseline  before  you  tune   –  Tune   –  Test  amer  tuning   –  Measure   –  Rinse  and  repeat  twice     •  Security  and  Performance  are  not  mutually  exclusive,   encrypXon  can  coexist  with  High  I/O  performance     •  Do  your  homework,  configure  and  run  tests  that  map  to  your   use  case   3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 34
  • 35. • Headquartered  in  AusXn,  Texas   • Focus  on  securing  sensiXve  data  in  cloud   and  big  data  environments   • Enable  customers  to  meet  compliance     requirements  like  HIPAA,  PCI,  FIPS  and   FERPA   • SaXsfy  internal  security  mandates   • Protect  valuable  client  informaXon   About  Gazzang  
  • 36. Gazzang  is  focused  on  data  at-­‐rest  encrypXon     Security  in  the  cloud  is  a  layered  approach   363/26/14 Gazzang - All rights reserved 2013 Data  in  process  (in  applica<on)   Data  at  rest  (storage)   Data  in  transit  (SSL)  
  • 37. and  key  management     373/26/14 Gazzang - All rights reserved 2013 Security  in  the  cloud  is  a  layered  approach   Data  in  process  (in  applica<on)   Data  at  rest  (storage)   Data  in  transit  (SSL)  
  • 38. Thank  you!   Gazzang,  Inc   www.gazzang.com       Eddie  Garcia   VP  of  InfoSec  and  Services   eddie.garcia@gazzang.com     Sam  Heywood   VP  of  Products  and  MarkeXng   sam.heywood@gazzang.com     3/26/14 © Gazzang, Inc. -- CONFIDENTIAL -- 38 Airport Race Porsche 911 GT3 Cup vs Boeing 747 http://www.youtube.com/watch?v=duOlJa5Vjdo