W E S C A L E D I T S c a l e t e s t i n g E - - PowerPoint PPT Presentation

w e s c a l e d i t
SMART_READER_LITE
LIVE PREVIEW

W E S C A L E D I T S c a l e t e s t i n g E - - PowerPoint PPT Presentation

W E S C A L E D I T S c a l e t e s t i n g E c l i p s e H o n o o n O p e n S h i f t D e j a n B o s a n a c , J e n s R e i m a n n S e n i o r S o f t w a r e E


slide-1
SLIDE 1

W E S C A L E D I T

S c a l e t e s t i n g E c l i p s e H

  • n
  • n

O p e n S h i f t D e j a n B

  • s

a n a c , J e n s R e i m a n n S e n i

  • r

S

  • f

t w a r e E n g i n e e r E c l i p s e C

  • n

E u r

  • p

e 2 1 8

slide-2
SLIDE 2

2

D E J A N B O S A N A C

T w i t t e r : @ d e j a n b G i t H u b : @ d e j a n b S e n i

  • r

S

  • f

t w a r e E n g i n e e r s M i d d l e w a r e / M e s s a g i n g F

  • c

u s

  • n

I

  • T

J E N S R E I M A N N

T w i t t e r : @ c t r

  • n

G i t H u b : @ c t r

  • n

W H O W E A R E

W

  • r

k i n g f

  • r

R e d H a t

slide-3
SLIDE 3

3

E C L I P S E H O N O

P r

  • j

e c t I n t r

  • d

u c t i

  • n

C

  • n

n e c t . C

  • m

m a n d . C

  • n

t r

  • l

.

“ E c l i p s e H

  • n

p r

  • v

i d e s r e m

  • t

e s e r v i c e i n t e r f a c e s f

  • r

c

  • n

n e c t i n g l a r g e n u m b e r s

  • f

I

  • T

d e v i c e s t

  • a

b a c k e n d a n d i n t e r a c t i n g w i t h t h e m i n a u n i f

  • r

m w a y r e g a r d l e s s

  • f

t h e d e v i c e c

  • m

m u n i c a t i

  • n

p r

  • t
  • c
  • l

. “ … “ H

  • n
  • s

p e c i fi c a l l y s u p p

  • r

t s s c a l a b l e a n d s e c u r e i n g e s t i

  • n
  • f

l a r g e v

  • l

u m e s

  • f

s e n s

  • r

d a t a b y m e a n s

  • f

i t s T e l e m e t r y a n d E v e n t A P I s . “

slide-4
SLIDE 4

T H E C L A I M

slide-5
SLIDE 5

5

E C L I P S E H O N O

C

  • n

n e c t . C

  • m

m a n d . C

  • n

t r

  • l

. H

  • n
  • p

r

  • v

i d e s s c a l a b i l i t y f

  • r

I

  • T
  • H
  • n
  • i

s s c a l a b l e

  • H
  • n
  • a

l l

  • w

s t

  • c
  • n

n e c t a l a r g e n u m b e r s

  • f

d e v i c e s

  • A

c

  • r

e f u n c t i

  • n

a l i t y i s t h e i n g e s t i

  • n
  • f

t e l e m e t r y d a t a

slide-6
SLIDE 6

6

O p e n S h i f t

B A S I C A R C H I T E C T U R E

T h i s i s w h a t w a s i n t e r e s t i n g t

  • u

s .

H

  • n
  • P

r

  • t
  • c
  • l

A d a p t e r s E n M a s s e A M Q P 1 . L a y e r C

  • n

s u m e r T e l e m e t r y D e v i c e s

slide-7
SLIDE 7

7

F i r s t a t t e m p t t

  • r

u n a l a r g e r t e s t .

W E ’ V E D O N E T H I S B E F O R E

N

  • v

2 1 7 J a n 2 1 8

V a l i d a t e t h a t

  • u

r fi x e s a c t u a l l y w

  • r

k e d . Y e s , t h e y d i d .

T h i s w a s n ’ t t h e fi r s t t e s t . W e a l r e a d y t e s t e d H

  • n
  • p

r e v i

  • u

s l y , b u t n

  • t

w i t h a f

  • c

u s

  • n

s c a l a b i l i t y .

T e s t i f H

  • n
  • s

c a l e s . … d

  • e

s i t ?

J u l y 2 1 8

slide-8
SLIDE 8

T H E L A B

slide-9
SLIDE 9

9

P I C K A L A B

L u c k i l y w e h a v e m

  • r

e t h a n

  • n

e , w e w e n t w i t h t h e

  • n

e w e a l r e a d y k n e w . L a b c a p a b i l i t i e s

  • 1

4 8 n

  • d

e s

  • 1

8 8 8 c

  • r

e s ( 3 3 9 2 t h r e a d s )

  • 1

. 1 P B

  • f

s t

  • r

a g e c a p a c i t y

O u r r e s e r v a t i

  • n

– f

  • r

3 + 1 w e e k s

  • 1

6 D E L L R 6 2

  • 2

x E 5

  • 2

6 2 , 6 4 / 1 2 8 G B R A M

  • 1

9 2 t

  • t

a l c

  • r

e s , 3 8 4 t

  • t

a l t h r e a d s

  • 1

5 3 6 G B R A M

slide-10
SLIDE 10

1

H O W W E S E T I T U P

A t a l e

  • f

t w

  • c

l u s t e r s . T w

  • s

e p a r a t e O p e n S h i f t c l u s t e r s .

  • O

n e f

  • r

H

  • n
  • a

n d i t s i n f r a s t r u c t u r e

  • 3

i n f r a s t r u c t u r e n

  • d

e s

  • C

l u s t e r n a t i v e s t

  • r

a g e ( G l u s t e r )

  • O

n e f

  • r

s i m u l a t i n g d e v i c e s a n d c

  • n

s u m e r s

  • W

a s i t n e c e s s a r y ? N

  • ,

b u t e a s i e r t

  • w
  • r

k w i t h .

  • D

e d i c a t e d m a s t e r s

M a s t e r I n f r a I n f r a I n f r a M a s t e r C

  • mp

u t e C

  • mp

u t e C

  • mp

u t e C

  • mp

u t e C

  • mp

u t e C

  • mp

u t e C

  • mp

u t e C

  • mp

u t e C

  • mp

u t e C

  • mp

u t e C

  • mp

u t e

slide-11
SLIDE 11

1 1

W H A T W E W A N T E D T O T E S T

T h e u s e c a s e w e f

  • c

u s e d

  • n

. I n g e s t i

  • n
  • f

t e l e m e t r y d a t a v i a H T T P .

  • W

e a l s

  • d

i d t e s t s a r

  • u

n d e v e n t s , M Q T T . B u t t h e f

  • c

u s w a s

  • n

t e l e m e t r y

  • v

e r H T T P .

  • W

e w a n t e d t

  • e

s t a b l i s h a b a s e l i n e f

  • r

t e l e m e t r y

  • v

e r H T T P , a n d t h e n s t a r t p l a y i n g a r

  • u

n d , m a k i n g m

  • d

i fi c a t i

  • n

s .

  • W

e a l s

  • w

a n t e d t

  • v

a l i d a t e a v i e w fi x e s a n d i d e a s w e h a d i n t h e p a s t .

  • T

a k e a t

  • p

d

  • w

n a p p r

  • a

c h . U s e t h e d e f a u l t s , t h e n

  • p

t i m i z e .

C

  • n

s u me r Q p i d R

  • u

t e r D e v i c e S i mu l a t

  • r

H T T P A d a p t e r

slide-12
SLIDE 12

1 2

S O F T W A R E C O M P O N E N T S

A f e w f a c t s a b

  • u

t t h e s

  • f

t w a r e w e u s e d .

  • O

p e n S h i f t ( O C P ) 3 . 9 . 1

  • R

H E L 7 . 5

  • E

n M a s s e . 2 1

  • E

c l i p s e H

  • n
  • .

7

  • S

n a p s h

  • t

v e r s i

  • n

, c l

  • s

e t

  • M

2

  • F
  • r

k e d

  • n

G i t H u b – “ r e d h a t

  • i
  • t

/ h

  • n

.

  • H
  • n
  • S

i m u a t

  • r

– “ r e d h a t

  • i
  • t

/ h

  • n
  • s

i m u l a t

  • r

  • D

e v i c e s i m u l a t

  • r
  • C
  • n

s u m e r s i m u l a t

  • r
  • H
  • n
  • S

c a l e T e s t – “ r e d h a t

  • i
  • t

/ h

  • n
  • s

c a l e

  • t

e s t ”

  • S

c a l e t e s t d e p l

  • y

m e n t a n d t

  • l

s

slide-13
SLIDE 13

1 3

M A K I N G P L A N S

A f e w s i m p l e s t e p s

  • G

e t t h e t e s t s e t u p u p a n d r u n n i n g

  • C

r e a t e a b a s e l i n e f

  • r

t e s t i n g , m a x

  • u

t t h e n u m b e r

  • f

m e s s a g e s / s

  • S

t a r t a u t

  • m

a t e d t e s t i n g , r a m p i n g u p t h e w

  • r

k l

  • a

d , m e a s u r i n g t h e r e s u l t s , s e e i n g i f i t s c a l e s .

  • T

e s t a f e w s c e n a r i

  • s

: O p e n J 9 , T h r e a d i n g s e t t i n g s , e v e n t s , …

slide-14
SLIDE 14

U P A N D R U N N I N G

slide-15
SLIDE 15

1 5

S C A L I N G E V E R Y T H I N G

slide-16
SLIDE 16

1 6

S C A L I N G E V E R Y T H I N G

slide-17
SLIDE 17

1 7

S C A L I N G E V E R Y T H I N G

slide-18
SLIDE 18

M A X I N G I T O U T

slide-19
SLIDE 19

1 9

P L E A S E N O T E

B e w a r e a b s

  • l

u t e n u m b e r s . R e s u l t s m a y b e d i f f e r e n t i n y

  • u

r e n v i r

  • n

m e n t . D

  • y
  • u

r

  • w

n t e s t s ! I t i s a l l O p e n S

  • u

r c e !

slide-20
SLIDE 20

2

M E A S U R I N G P E R F O R M A N C E

G e n e r a t i n g a n d c

  • n

s u m i n g I

  • T

w

  • r

k l

  • a

d .

  • T

h e s i m u l a t i

  • n

c l u s t e r r u n s X p

  • d

s , s i m u l a t i n g Y d e v i c e s , s e n d i n g

  • n

e m e s s a g e e a c h s e c

  • n

d .

  • H
  • w

m a n y a t t e m p t s t

  • s

e n d ?

  • T

h e s i m u l a t i

  • n

c l u s t e r r u n s Z p

  • d

s , c

  • n

s u m i n g m e s s a g e s a s f a s t a s p

  • s

s i b l e .

  • H
  • w

m a n y m e s s a g e s r e c e i v e d ?

  • H
  • n
  • h

a n d l e s b a c k

  • p

r e s s u r e b y r e j e c t i n g m e s s a g i n g a t t h e p r

  • t
  • c
  • l

a d a p t e r . H a s a n H T T P c

  • d

e f

  • r

t h a t .

  • W

h i c h e r r

  • r

s ?

  • W

e c a n c a l c u l a t e t h e e r r

  • r

r a t e , m e s s a g e s t h a t c

  • u

l d n ’ t b e s e n t d u e t

  • a

n e r r

  • r

/ r e j e c t

  • n

t h e c l

  • u

d s i d e .

  • W

e c a n s c a l e u p p r

  • d

u c e r s , c

  • n

s u m e r s a n d i n f r a s t r u c t u r e c

  • m

p

  • n

e n t s ( E n M a s s e , H

  • n
  • )

.

slide-21
SLIDE 21

2 1

C A T C H A G L I M P S E

slide-22
SLIDE 22

2 2

C A T C H A G L I M P S E

QPID Routers 1 1 1 1 1 2 2 Devices / Pod 1,000 1,000 1,000 1,000 1,000 1,000 1,000 Pods 1 2 4 8 16 32 40 Messages / second 1,000 2,000 4,000 8,000 16,000 32,000 40,000 Request RTT (ms) <5 <5 11 45 20 50 150 Consumers 20 20 20 20 20 20 8 Consumer Credits 1,000 1,000 1,000 1,000 1,000 1,000 1,000 Hono Adapters 1 1 1 1 2 5 10 Receiver Link Credit 1,000 1,000 1,000 1,000 1,000 1,000 1,000 Hono Device Registry 10 10 10 10 10 10 10 Receiver Link Credit 1,000 1,000 1,000 1,000 1,000 1,000 1,000 Failure Ratio (%) < 0.1 < 0.1 < 0.1 < 0.1 < 0.1 < 0.1 < 1 Average Throughput (msgs 1,000 2,000 4,000 8,000 16,000 32,000 40,000 Messages / Instance

1000 2000 4000 8000 8000 6400 4000

slide-23
SLIDE 23

2 3

T H E B A S E L I N E

M a x i m u m

  • f

8 . m s g s / s

  • 2

D e d i c a t e d Q P I D r

  • u

t e r n

  • d

e s

  • D

e v i c e r e g i s t r y s e r v i c e a s a s i d e c a r

  • 8

n

  • d

e s r u n n i n g H

  • n
  • s

e r v i c e s

  • U

s i n g a H T T P c l i e n t l i b r a r y w h i c h s c a l e s .

  • T

h r

  • u

g h p u t i s l i m i t e d b y C P U a n d N e t w

  • r

k r e s

  • u

r c e s

  • R

A M i s n

  • t

a n l i m i t i n g f a c t

  • r
  • N

e i t h e r i s d i s k ( f

  • r

t e l e m e t r y ! )

slide-24
SLIDE 24

T H I N G S W E L E A R N E D

slide-25
SLIDE 25

2 5

D E V I C E R E G I S T R Y S I D E C A R

D E V I C E A D A P T E R Q P I D R O U T E R R E G I S T R Y

slide-26
SLIDE 26

2 6

D E V I C E R E G I S T R Y S I D E C A R

P O D C O N T A I N E R C O N T A I N E R P O D C O N T A I N E R P O D C O N T A I N E R P O D C O N T A I N E R

slide-27
SLIDE 27

2 7

Q P I D R O U T E R N O D E S

P u t t i n g Q P I D r

  • u

t e r

  • n

i n f r a n

  • d

e s h e l p e d s t r e a m l i n e t h e m e s s a g e fl

  • w

.

  • H

a v i n g d e d i c a t e d Q P I D r

  • u

t e r n

  • d

e s , d i d r e d u c e t h e i n t e r n

  • d

e t r a f fi c .

  • U

s i n g n

  • d

e p

  • r

t s ( v s r

  • u

t e s ) i m p r

  • v

e d t h e p e r f

  • r

m a n c e a l

  • t

.

M a s t e r I n f r a I n f r a I n f r a M a s t e r C

  • mp

u t e C

  • mp

u t e C

  • mp

u t e C

  • mp

u t e C

  • mp

u t e C

  • mp

u t e C

  • mp

u t e C

  • mp

u t e C

  • mp

u t e C

  • mp

u t e C

  • mp

u t e

slide-28
SLIDE 28

2 8

A P E R F O R M A N T H T T P C L I E N T

F i n d i n g a p e r f

  • r

m a n t H T T P c l i e n t l i b r a r y i s t r i c k y .

  • S
  • m

e

  • f

t h e i n i t i a l l i m i t a t i

  • n

s c a m e f r

  • m

t h e d e v i c e s i m u l a t

  • r

, w h i c h c

  • u

l d n

  • t

k e e p u p s e n d i n g r e q u e s t s .

  • O

k H t t p – S i m p l e A P I , a v e r a g e p e r f

  • r

m a n c e

  • J

a v a d e f a u l t H T T P c l i e n t – C

  • m

p l i c a t e d , b a d p e r f

  • r

m a n c e

  • A

p a c h e H t t p C l i e n t – C

  • m

p l i c a t e d , b a d p e r f

  • r

m a n c e

  • A

H C – A v e r a g e A P I , g

  • d

p e r f

  • r

ma n c e

  • V

e r t . x H T T P C l i e n t – G

  • d

A P I , g

  • d

p e r f

  • r

m a n c e

  • W

e w e n t w i t h v e r t . x i t a l s

  • p

r

  • v

i d e s a s i m p l e A P I a n d w e a l r e a d y k n e w i t .

slide-29
SLIDE 29

2 9

N A T I V E S O C K E T S A N D T L S

V e r t x / N e t t y a l l

  • w

t h e u s e

  • f

“ e p

  • l

l ( ) ” a n d “ l i b s s l . s

  • S

w i t c h i n g t

  • n

a t i v e T L S r e d u c e s t h e C P U l

  • a

d , e s p e c i a l l y

  • v

e r t h e l

  • n

g r u n .

  • S

w i t c h i n g t

  • n

e t t y e p

  • l

l ( ) i m p r

  • v

e s t h e t h r

  • u

g h p u t a n d t a k e s l

  • a

d

  • f

f t h e J V M .

slide-30
SLIDE 30

A U T O M A T E D S C A L I N G T E S T S

slide-31
SLIDE 31

3 1

D E F A U L T S C E N A R I O

S c a l e . W a i t . S t a b i l i z e . R e p e a t . W e w r

  • t

e a n a u t

  • m

a t e d t e s t , t

  • r

u n t h e s a m e s c e n a r i

  • w

i t h d i f f e r e n t p a r a m e t e r s .

1 )S c a l e u p p r

  • d

u c e r 2 ) W a i t f

  • r

a s t a b l e m e s s a g e fl

  • w

3 ) I f t h e fl

  • w

i s s t a b l e ( e r r

  • r

r a t e ) , c

  • n

t i n u e w i t h 1 ) 4 ) O t h e r w i s e s c a l e u p H

  • n
  • a

d a p t e r s u n t i l w e h i t a l i m i t 5 ) E n d t h e t e s t w h e n w e r e a c h e d t h e a d a p t e r l i m i t

+ 1 P R O D E R R < 2 % + 1 H T T P E N D H T T P < x

slide-32
SLIDE 32

3 2

D E F A U L T S C E N A R I O

R e s u l t s .

slide-33
SLIDE 33

T H I N G S W E T R I E D

slide-34
SLIDE 34

3 4

I / O T H R E A D S

C

  • m

p a r i n g 1 v s 9 v e r t . x w

  • r

k e r t h r e a d s . T h e s a m e s c e n a r i

  • w

a s r u n , w i t h a d i f f e r e n t t h r e a d c

  • n

fi g u r a t i

  • n

.

  • V

e r t . x a s s i g n s “ v e r t i c l e s ” ( s e r v i c e s ) t

  • a

w

  • r

k e r t h r e a d .

  • I

s 1 J V M w i t h 9 w

  • r

k e r t h r e a d s b e t t e r t h a n 9 J V M s w i t h 1 w

  • r

k e r t h r e a d ?

2.000 4.000 6.000 8.000 10.000 12.000 14.000 16.000 18.000 20.000 22.000 24.000 26.000 28.000 30.000 32.000 34.000 36.000 38.000 40.000 42.000 44.000 46.000 48.000 50.000 52.000 54.000 56.000 58.000 60.000 62.000 64.000 66.000 68.000 70.000 72.000 20 40 60 80 100 120 200 400 600 800 1.000 1.200 rtt (ms) – 1 msgs/s/thread – 1 rtt (ms) – 9 msgs/s/thread – 9

slide-35
SLIDE 35

3 5

1 v s 9 I O T H R E A D S

2 . 4 . 6 . 8 . 1 . 1 2 . 1 4 . 1 6 . 1 8 . 2 . 2 2 . 2 4 . 2 6 . 2 8 . 3 . 3 2 . 3 4 . 3 6 . 3 8 . 4 . 4 2 . 4 4 . 4 6 . 4 8 . 5 . 5 2 . 5 4 . 5 6 . 5 8 . 6 . 6 2 . 6 4 . 6 6 . 6 8 . 7 . 7 2 . 20 40 60 80 100 120 200 400 600 800 1.000 1.200 rtt (ms) – 1 msgs/s/thread – 1 rtt (ms) – 9 msgs/s/thread – 9

slide-36
SLIDE 36

3 6

O P E N J 9 v s O P E N J D K

T e s t i n g w i t h E c l i p s e O p e n J 9 v s O p e n J D K T h e c l a i m i s , t h a t O p e n J 9 c

  • n

s u m e s l e s s m e m

  • r

y , h a v i n g t h e s a m e p e r f

  • r

m a n c e .

  • C

r e a t e a f a b r i c S 2 I b u i l d e r f

  • r

O p e n J 9

  • c

t r

  • n

/ s 2 i

  • j

a v a

  • p

e n j 9

  • R

u n t h e d e f a u l t s c e n a r i

  • w

i t h i t

  • N
  • r

e a l d i f f e r e n c e c

  • u

l d b e s e e n .

  • R

A M n e v e r w a s a l i m i t i n g f a c t

  • r

.

  • B

u t t h e p e r f

  • r

m a n c e w a s t h e s a m e .

slide-37
SLIDE 37

S U M M A R Y

slide-38
SLIDE 38

3 8

Y E S , I T S C A L E S !

slide-39
SLIDE 39

3 9

Y E S , I T S C A L E S .

S

  • ,

w h a t d

  • e

s t h a t m e a n ? I n t h e a m

  • u

n t

  • f

r e s

  • u

r c e s w e h a d a v a i l a b l e , w e c

  • u

l d fi n d t h a t :

1 )I n t h e d e f a u l t s c e n a r i

  • ,

w i t h 9 w

  • r

k e r t h r e a d s , a d d i n g a n a d d i t i

  • n

a l p

  • d

i n c r e a s e d t h e c l u s t e r c a p a c i t y b y ~ 5 . m s g s / s . 2 ) W e c

  • u

l d r e p e a t t h a t u n t i l w e h i t

  • u

t c l u s t e r l i m i t .

slide-40
SLIDE 40

4

I S T H A T G O O D E N O U G H ?

C a n w e d

  • b

e t t e r ? T h e r e i s a l w a y s r

  • m

f

  • r

i m p r

  • v

e m e n t .

  • T

h e r e q u e s t / r e s p

  • n

s e c l i e n t h a d s

  • m

e i s s u e s w i t h b a c k

  • p

r e s s u r e h a n d l i n g ( fi x e d i n . 7 )

  • T

h e r e w a s a m e m

  • r

y l e a k , b u i l d i n g u p s t r e s s

  • n

t h e J V M ( fi x e d i n . 7 )

  • T

h e r e w a s a p e r f

  • r

m a n c e i s s u e i n t h e A M Q P 1 . e n c

  • d

i n g ( fi x e d i n . 8

  • M

1 )

  • A

n d w e c

  • n

t i n u e t

  • i

m p r

  • v

e i t …

slide-41
SLIDE 41

4 1

T H I N G S T O C O N S I D E R

D e p l

  • y

i n g a c l

  • u

d I

  • T

s

  • l

u t i

  • n

c a n b e t r i c k y . K e e p i n m i n d :

  • T

h e d e v i c e r e g i s t r y , w h i c h i s n

  • t

p a r t

  • f

H

  • n
  • ,

h a s a h u g e i m p a c t

  • n

t h e

  • v

e r a l l p e r f

  • r

m a n c e .

  • C
  • n

s u m e r s a l s

  • p

l a y a r

  • l

e i n t h e

  • v

e r a l l p e r f

  • r

m a n c e . W e s i m p l y t h r e w a w a y t h e p a y l

  • a

d . T h i s m a y n

  • t

b e v i a b l e b u s i n e s s c a s e f

  • r

y

  • u

;

  • )
slide-42
SLIDE 42

4 2

T R Y T H I S A T H O M E

E v e r y t h i n g i s O p e n S

  • u

r c e , y

  • u

c a n d

  • y
  • u

r

  • w

n s c a l e t e s t .

  • E

c l i p s e H

  • n
  • e

c l i p s e / h

  • n
  • S

c a l e T e s t D e p l

  • y

m e n t

  • r

e d h a t

  • i
  • t

/ h

  • n
  • s

c a l e

  • t

e s t

  • H
  • n
  • S

i mu l a t

  • r
  • r

e d h a t

  • i
  • t

/ h

  • n
  • s

i m u l a t

  • r
slide-43
SLIDE 43

Q U E S T I O N S ?

slide-44
SLIDE 44