Skip to content

Instantly share code, notes, and snippets.

Avatar

Jerome Gagnon jgagnon1

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am jgagnon1 on github.
  • I am jgagnon (https://keybase.io/jgagnon) on keybase.
  • I have a public key ASDTcubz0FSGu1ERtr_fi344zEwdU_RzCfuVs2GnEClBNwo

To claim this, I am signing this object:

View jenkins-neo-theme.css
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700,500,300);@-webkit-keyframes rotating{from{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}@keyframes rotating{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}[src$='blue.png']{background-image:url(data:image/svg+xml;charset=UTF-8,%3Csvg%20height%3D%2218%22%20viewBox%3D%220%200%2024%2024%22%20width%3D%2218%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22%2F%3E%3Cpath%20fill%3D%22%23009688%22%20d%3D%22M12%202C6.48%202%202%206.48%202%2012s4.48%2010%2010%2010%2010-4.48%2010-10S17.52%202%2012%202zm-2%2015l-5-5%201.41-1.41L10%2014.17l7.59-7.59L19%208l-9%209z%22%2F%3E%3C%2Fsvg%3E)}[src$='red.png']{background-image:url(data:image/svg+xml;charset=UTF-8,%3Csvg%20height%3D%2218%22%20viewBox%3D%220%200%2024%2024%22%20width%3D%2218%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22%2F%3E%3Cpath%20fi
@jgagnon1
jgagnon1 / gist:5f89ff18d89040c8ae9b
Last active Aug 29, 2015 — forked from joyofdata/gist:26e49e77285e35bc2439
Setting Up a Time Dimension Table in MySQL / comment
View gist:5f89ff18d89040c8ae9b
DROP TABLE IF EXISTS `T`;
CREATE TABLE `T` (
`n` int(11)
);
INSERT INTO `T`(n) SELECT @row := @row + 1 as row FROM
(select 0 union all select 1 union all select 2 union all select 3 union all select 4 union all select 5 union all select 6 union all select 7 union all select 8 union all select 9) t,
(select 0 union all select 1 union all select 2 union all select 3 union all select 4 union all select 5 union all select 6 union all select 7 union all select 8 union all select 9) t2,
(select 0 union all select 1 union all select 2 union all select 3 union all select 4 union all select 5 union all select 6 union all select 7 union all select 8 union all select 9) t3,
(select 0 union all select 1 union all select 2 union all select 3 union all select 4 union all select 5 union all select 6 union all select 7 union all select 8 union all select 9) t4,
View gist:6389884
"settings": {
"analysis": {
"analyzer": {
"default": {
"char_filter": "html_strip",
"filter": [
"lowercase",
"asciifolding",
"stop",
],
View gist:5240498
Exception in thread "elasticsearch[es1b][generic][T#1]" java.lang.IncompatibleClassChangeError: Found class org.elasticsearch.indices.warmer.IndicesWarmer$Listener, but interface was expected
at org.elasticsearch.indices.warmer.InternalIndicesWarmer.warm(InternalIndicesWarmer.java:90)
at org.elasticsearch.index.engine.robin.RobinEngine$RobinSearchFactory.newSearcher(RobinEngine.java:1529)
at org.apache.lucene.search.SearcherManager.getSearcher(SearcherManager.java:147)
at org.apache.lucene.search.SearcherManager.<init>(SearcherManager.java:82)
at org.elasticsearch.index.engine.robin.RobinEngine.buildSearchManager(RobinEngine.java:1422)
at org.elasticsearch.index.engine.robin.RobinEngine.start(RobinEngine.java:270)
at org.elasticsearch.index.shard.service.InternalIndexShard.performRecoveryPrepareForTranslog(InternalIndexShard.java:547)
at org.elasticsearch.index.gateway.local.LocalIndexShardGateway.recover(LocalIndexShardGateway.java:190)
View gist:5239811
"thread_pool": {
"generic": {
"threads": 1,
"queue": 0,
"active": 0,
"rejected": 0,
"largest": 11,
"completed": 389
},
"index": {
View gist:5237718
[2013-03-25 08:47:16,860][WARN ][index.engine.robin ] [es37b] [wajam][178] failed to prepare/warm [30/345]
org.elasticsearch.common.util.concurrent.EsRejectedExecutionException: rejected execution of [org.elasticsearch.indices.warmer.InternalIndicesWarmer$1]
at org.elasticsearch.common.util.concurrent.EsAbortPolicy.rejectedExecution(EsAbortPolicy.java:35)
at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:816)
at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1337)
at org.elasticsearch.indices.warmer.InternalIndicesWarmer.warm(InternalIndicesWarmer.java:90)
at org.elasticsearch.index.engine.robin.RobinEngine$RobinSearchFactory.newSearcher(RobinEngine.java:1535)
at org.apache.lucene.search.SearcherManager.getSearcher(SearcherManager.java:147)
at org.apache.lucene.search.SearcherManager.refreshIfNeeded(S
View gist:5066873
Now;
[2013-02-28 22:55:10,059][INFO ][monitor.jvm ] [es1b] [gc][ConcurrentMarkSweep][44890][97] duration [5.2s], collections [1]/[5.6s], total [5.2s]/[11.9s], memory [10.7gb]->[6.3gb]/[15.9gb], all_pools {[Code Cache] [11mb]->[11mb]/[48mb]}{[Par Eden Space] [463.8mb]->[24.2mb]/[532.5mb]}{[Par Survivor Space] [66.5mb]->[0b]/[66.5mb]}{[CMS Old Gen] [10.2gb]->[6.3gb]/[15.3gb]}{[CMS Perm Gen] [34.8mb]->[34.6mb]/[82mb]}
[2013-02-28 22:57:12,113][INFO ][common ] [push/pop ratio][17848807/17848835]
[2013-02-28 23:01:14,027][INFO ][monitor.jvm ] [es1b] [gc][ParNew][45253][8820] duration [903ms], collections [1]/[1.4s], total [903ms]/[15m], memory [10gb]->[10gb]/[15.9gb], all_pools {[Code Cache] [11mb]->[11mb]/[48mb]}{[Par Eden Space] [2.9mb]->[1.4mb]/[532.5mb]}{[Par Survivor Space] [66.4mb]->[31.8mb]/[66.5mb]}{[CMS Old Gen] [9.9gb]->[10gb]/[15.3gb]}{[CMS Perm Gen] [34.6mb]->[34.6mb]/[82mb]}
Before;
[2013-02-26 18:42:20,068][INFO ][monitor.jvm ] [es1b] [gc][Co
View gist:5065431
{
"index": {
"analysis": {
"analyzer": {
"standard": {
"language": "English",
"type": "snowball"
},
"url_analyzer": {
"filter": [
View gist:5013938
This file has been truncated, but you can view the full file.
::: [es13b][BR5TbYEATsuuibxDfuk_ww][inet[/10.1.16.155:9300]]{master=true}
58.4% (292ms out of 500ms) cpu usage by thread 'elasticsearch[es13b][search][T#7]'
5/10 snapshots sharing following 14 elements
java.util.concurrent.ConcurrentLinkedQueue.offer(ConcurrentLinkedQueue.java:352)
java.util.concurrent.ConcurrentLinkedQueue.add(ConcurrentLinkedQueue.java:296)
org.elasticsearch.common.CacheRecycler.pushIntArray(CacheRecycler.java:502)
org.elasticsearch.common.CacheRecycler.pushIntArray(CacheRecycler.java:492)
org.elasticsearch.search.facet.terms.ints.TermsIntOrdinalsFacetCollector.facet(TermsIntOrdinalsFacetCollector.java:188)