10
Landscape of Norikra features タゴ=モリス Norikra meetup 2014/07/09 1479日水曜日

Landscape of Norikra features

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Landscape of Norikra features

Landscape ofNorikra featuresタゴ=モリス

Norikra meetup 2014/07/09

14年7月9日水曜日

Page 2: Landscape of Norikra features

target/query persistence (1)

Norikra does NOT save targets/queries by default.

v1.0.4 warn on log

Use “--stats=PATH” option to save targets/queries on specified path at shutdown

Targets/queries are loaded automatically after restarts if “--stats” specified

14年7月9日水曜日

Page 3: Landscape of Norikra features

target/query persistence (2)

“--dump-stat-interval=N”

Autosave targets/queries every specified interval (not only on shutdown)

“--stats-secondary=PATH_PATTERN”

Backup stats file path: date pattern available

ex: “/var/norikra/stats.%Y%m%d.json”

14年7月9日水曜日

Page 4: Landscape of Norikra features

JVM options (1)GC:

“norikra start” specifies JVM options in default-XX:-UseGCOverheadLimit-XX:+UseConcMarkSweepGC -XX:+UseCompressedOops-XX:CMSInitiatingOccupancyFraction=70-XX:+UseCMSInitiatingOccupancyOnly-XX:NewRatio=1-XX:SurvivorRatio=2 -XX:MaxTenuringThreshold=15-XX:TargetSurvivorRatio=80-XX:SoftRefLRUPolicyMSPerMB=200

Use “--bare-jvm” for JVM w/o any options

14年7月9日水曜日

Page 5: Landscape of Norikra features

JVM options (2)

GC log:

Use “--gc-log=PATH” to get GC logs-Xloggc:FILE_PATH-verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps-XX:+HeapDumpOnOutOfMemoryError

14年7月9日水曜日

Page 6: Landscape of Norikra features

JVM options (3)

Any “-X” or “-XX” JVM options are available

ex: “norikra start -Xmx2g”

This makes “norikra start” extremely slow! :(

14年7月9日水曜日

Page 7: Landscape of Norikra features

“SELECT * FROM ...”

“SELECT * FROM ...” may NOT perform as user expects

Because “*” requires schema, but Norikra does not have it

14年7月9日水曜日

Page 8: Landscape of Norikra features

Query group

Query have 3 string elements:

name, group, statement

“name” is used to fetch its results

“group” is used to sweep results of queries which have same group name

14年7月9日水曜日

Page 9: Landscape of Norikra features

Loopback query group

Query group “LOOPBACK(target_name)”

14年7月9日水曜日

Page 10: Landscape of Norikra features

READ DOCUMENT

SITE!!!!!!!!!!!

Thanks!

14年7月9日水曜日