springboard 0.18.7.1 → 0.19.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -28,6 +28,9 @@ specific elasticsearch versions in your Gemfile. Create an issue or pull
28
28
  request if you need a version of the gem with a particular elasticsearch
29
29
  version.
30
30
 
31
+ Subsequent Springboard releases for the same version will add a
32
+ version specifier to the end of the version, eg 0.18.7.1.
33
+
31
34
  ## Usage
32
35
 
33
36
  This gem packages up the elasticsearch binary distribution with a ruby
@@ -35,7 +38,7 @@ gem binary on top. It add a config path parameter to the elasticsearch
35
38
  binary. This makes it easier to put a relative config path on the
36
39
  command line:
37
40
 
38
- elasticsearch -c config/elasticsearch -f
41
+ springboard -c config/elasticsearch -f
39
42
 
40
43
  All other parameters are passed through to the normal elasticsearch
41
44
  start script.
@@ -46,7 +49,7 @@ path, almost certainly not what you want.
46
49
 
47
50
  You can run elasticsearch from a Procfile:
48
51
 
49
- es: bundle exec elasticsearch -c config/elasticsearch -f
52
+ es: bundle exec springboard -c config/elasticsearch -f
50
53
 
51
54
  A rails generator for elasticsearch config files is included. Run:
52
55
 
data/Rakefile CHANGED
@@ -12,7 +12,7 @@ task :update, [:version] do |t, args|
12
12
  File.open("lib/springboard/version.rb", "w") do |f|
13
13
  f.write <<EOS
14
14
  module Springboard
15
- VERSION = "#{args.version}"
15
+ VERSION = "#{args.version}"
16
16
  end
17
17
  EOS
18
18
  end
@@ -6,6 +6,10 @@ fi
6
6
  if [ "x$ES_MAX_MEM" = "x" ]; then
7
7
  ES_MAX_MEM=1g
8
8
  fi
9
+ if [ "x$ES_HEAP_SIZE" != "x" ]; then
10
+ ES_MIN_MEM=$ES_HEAP_SIZE
11
+ ES_MAX_MEM=$ES_HEAP_SIZE
12
+ fi
9
13
 
10
14
  # min and max heap sizes should be set to the same value to avoid
11
15
  # stop-the-world GC pauses during resize, and so that we can lock the
@@ -14,6 +18,11 @@ fi
14
18
  JAVA_OPTS="$JAVA_OPTS -Xms${ES_MIN_MEM}"
15
19
  JAVA_OPTS="$JAVA_OPTS -Xmx${ES_MAX_MEM}"
16
20
 
21
+ # new generation
22
+ if [ "x$ES_HEAP_NEWSIZE" != "x" ]; then
23
+ JAVA_OPTS="$JAVA_OPTS -Xmn${ES_HEAP_NEWSIZE}"
24
+ fi
25
+
17
26
  # reduce the per-thread stack size
18
27
  JAVA_OPTS="$JAVA_OPTS -Xss128k"
19
28
 
@@ -26,12 +35,13 @@ JAVA_OPTS="$JAVA_OPTS -Xss128k"
26
35
 
27
36
  JAVA_OPTS="$JAVA_OPTS -XX:+UseParNewGC"
28
37
  JAVA_OPTS="$JAVA_OPTS -XX:+UseConcMarkSweepGC"
29
- JAVA_OPTS="$JAVA_OPTS -XX:+CMSParallelRemarkEnabled"
30
- JAVA_OPTS="$JAVA_OPTS -XX:SurvivorRatio=8"
31
- JAVA_OPTS="$JAVA_OPTS -XX:MaxTenuringThreshold=1"
38
+
32
39
  JAVA_OPTS="$JAVA_OPTS -XX:CMSInitiatingOccupancyFraction=75"
33
40
  JAVA_OPTS="$JAVA_OPTS -XX:+UseCMSInitiatingOccupancyOnly"
34
41
 
42
+ # When running under Java 7
43
+ #JAVA_OPTS="$JAVA_OPTS -XX:+UseCondCardMark"
44
+
35
45
  # GC logging options -- uncomment to enable
36
46
  # JAVA_OPTS="$JAVA_OPTS -XX:+PrintGCDetails"
37
47
  # JAVA_OPTS="$JAVA_OPTS -XX:+PrintGCTimeStamps"
@@ -1,3 +1,3 @@
1
1
  module Springboard
2
- VERSION = "0.18.7.1"
2
+ VERSION = "0.19.0"
3
3
  end
@@ -4,8 +4,8 @@ require File.expand_path('../lib/springboard/version', __FILE__)
4
4
  Gem::Specification.new do |gem|
5
5
  gem.authors = ["Grant Rodgers"]
6
6
  gem.email = ["grantr@gmail.com"]
7
- gem.description = %q{Run elasticsearch as a gem binary}
8
- gem.summary = %q{Packages up elasticsearch in a gem and adds a ruby executable to run it easily with relative config paths.
7
+ gem.summary = %q{Run elasticsearch as a gem binary}
8
+ gem.description = %q{Packages up elasticsearch in a gem and adds a ruby executable to run it easily with relative config paths.
9
9
  Makes elasticsearch dead simple to develop with.}
10
10
  gem.homepage = "http://github.com/grantr/springboard"
11
11
 
@@ -200,338 +200,3 @@
200
200
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
201
  See the License for the specific language governing permissions and
202
202
  limitations under the License.
203
-
204
-
205
- APACHE CASSANDRA THIRD-PARTY DEPENDENCIES
206
-
207
- Apache Cassandra includes convenience copies of a number of third-party
208
- dependencies that have separate copyright notices and license terms. Your
209
- use of these libraries is subject to the terms and conditions of the
210
- following licenses.
211
-
212
- For lib/flexjson-1.7.jar and lib/google-collect-1.0-rc1.jar:
213
-
214
- While developed outside the ASF, these projects are also licensed under
215
- the Apache License 2.0. The full text of the Apache License 2.0 can be
216
- found at top of this file.
217
-
218
- See NOTICE.txt for the respective copyright notices of these libraries.
219
-
220
-
221
- For lib/antlr-3.1.3.jar:
222
- ------------------------
223
-
224
- [The "BSD licence"]
225
- Copyright (c) 2003-2006 Terence Parr
226
- All rights reserved.
227
-
228
- Redistribution and use in source and binary forms, with or without
229
- modification, are permitted provided that the following conditions
230
- are met:
231
-
232
- 1. Redistributions of source code must retain the above copyright
233
- notice, this list of conditions and the following disclaimer.
234
- 2. Redistributions in binary form must reproduce the above copyright
235
- notice, this list of conditions and the following disclaimer in the
236
- documentation and/or other materials provided with the distribution.
237
- 3. The name of the author may not be used to endorse or promote products
238
- derived from this software without specific prior written permission.
239
-
240
- THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
241
- IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
242
- OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
243
- IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
244
- INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
245
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
246
- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
247
- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
248
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
249
- THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
250
-
251
-
252
- For lib/high-scale-lib.jar:
253
- ---------------------------
254
-
255
- The person or persons who have associated work with this document (the
256
- "Dedicator" or "Certifier") hereby either (a) certifies that, to the best
257
- of his knowledge, the work of authorship identified is in the public
258
- domain of the country from which the work is published, or (b) hereby
259
- dedicates whatever copyright the dedicators holds in the work of
260
- authorship identified below (the "Work") to the public domain. A
261
- certifier, moreover, dedicates any copyright interest he may have in the
262
- associated work, and for these purposes, is described as a "dedicator"
263
- below.
264
-
265
- A certifier has taken reasonable steps to verify the copyright status of
266
- this work. Certifier recognizes that his good faith efforts may not
267
- shield him from liability if in fact the work certified is not in the
268
- public domain.
269
-
270
- Dedicator makes this dedication for the benefit of the public at large and
271
- to the detriment of the Dedicator's heirs and successors. Dedicator
272
- intends this dedication to be an overt act of relinquishment in perpetuity
273
- of all present and future rights under copyright law, whether vested or
274
- contingent, in the Work. Dedicator understands that such relinquishment of
275
- all rights includes the relinquishment of all rights to enforce (by
276
- lawsuit or otherwise) those copyrights in the Work.
277
-
278
- Dedicator recognizes that, once placed in the public domain, the Work may
279
- be freely reproduced, distributed, transmitted, used, modified, built
280
- upon, or otherwise exploited by anyone for any purpose, commercial or
281
- non-commercial, and in any way, including by methods that have not yet
282
- been invented or conceived.
283
-
284
-
285
- For lib/jline-0.9.94.jar:
286
- -------------------------
287
-
288
- Copyright (c) 2002-2006, Marc Prud'hommeaux <mwp1@cornell.edu>
289
- All rights reserved.
290
-
291
- Redistribution and use in source and binary forms, with or
292
- without modification, are permitted provided that the following
293
- conditions are met:
294
-
295
- Redistributions of source code must retain the above copyright
296
- notice, this list of conditions and the following disclaimer.
297
-
298
- Redistributions in binary form must reproduce the above copyright
299
- notice, this list of conditions and the following disclaimer
300
- in the documentation and/or other materials provided with
301
- the distribution.
302
-
303
- Neither the name of JLine nor the names of its contributors
304
- may be used to endorse or promote products derived from this
305
- software without specific prior written permission.
306
-
307
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
308
- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
309
- BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
310
- AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
311
- EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
312
- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
313
- OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
314
- PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
315
- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
316
- AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
317
- LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
318
- IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
319
- OF THE POSSIBILITY OF SUCH DAMAGE.
320
-
321
-
322
- For lib/junit-4.6.jar:
323
- ----------------------
324
-
325
- Common Public License Version 1.0
326
-
327
- THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS COMMON PUBLIC
328
- LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM
329
- CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
330
-
331
- 1. DEFINITIONS
332
-
333
- "Contribution" means:
334
-
335
- a) in the case of the initial Contributor, the initial code and
336
- documentation distributed under this Agreement, and
337
-
338
- b) in the case of each subsequent Contributor:
339
-
340
- i) changes to the Program, and
341
-
342
- ii) additions to the Program;
343
-
344
- where such changes and/or additions to the Program originate from and are
345
- distributed by that particular Contributor. A Contribution 'originates' from a
346
- Contributor if it was added to the Program by such Contributor itself or anyone
347
- acting on such Contributor's behalf. Contributions do not include additions to
348
- the Program which: (i) are separate modules of software distributed in
349
- conjunction with the Program under their own license agreement, and (ii) are not
350
- derivative works of the Program.
351
-
352
- "Contributor" means any person or entity that distributes the Program.
353
-
354
- "Licensed Patents " mean patent claims licensable by a Contributor which are
355
- necessarily infringed by the use or sale of its Contribution alone or when
356
- combined with the Program.
357
-
358
- "Program" means the Contributions distributed in accordance with this Agreement.
359
-
360
- "Recipient" means anyone who receives the Program under this Agreement,
361
- including all Contributors.
362
-
363
- 2. GRANT OF RIGHTS
364
-
365
- a) Subject to the terms of this Agreement, each Contributor hereby grants
366
- Recipient a non-exclusive, worldwide, royalty-free copyright license to
367
- reproduce, prepare derivative works of, publicly display, publicly perform,
368
- distribute and sublicense the Contribution of such Contributor, if any, and such
369
- derivative works, in source code and object code form.
370
-
371
- b) Subject to the terms of this Agreement, each Contributor hereby grants
372
- Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed
373
- Patents to make, use, sell, offer to sell, import and otherwise transfer the
374
- Contribution of such Contributor, if any, in source code and object code form.
375
- This patent license shall apply to the combination of the Contribution and the
376
- Program if, at the time the Contribution is added by the Contributor, such
377
- addition of the Contribution causes such combination to be covered by the
378
- Licensed Patents. The patent license shall not apply to any other combinations
379
- which include the Contribution. No hardware per se is licensed hereunder.
380
-
381
- c) Recipient understands that although each Contributor grants the licenses
382
- to its Contributions set forth herein, no assurances are provided by any
383
- Contributor that the Program does not infringe the patent or other intellectual
384
- property rights of any other entity. Each Contributor disclaims any liability to
385
- Recipient for claims brought by any other entity based on infringement of
386
- intellectual property rights or otherwise. As a condition to exercising the
387
- rights and licenses granted hereunder, each Recipient hereby assumes sole
388
- responsibility to secure any other intellectual property rights needed, if any.
389
- For example, if a third party patent license is required to allow Recipient to
390
- distribute the Program, it is Recipient's responsibility to acquire that license
391
- before distributing the Program.
392
-
393
- d) Each Contributor represents that to its knowledge it has sufficient
394
- copyright rights in its Contribution, if any, to grant the copyright license set
395
- forth in this Agreement.
396
-
397
- 3. REQUIREMENTS
398
-
399
- A Contributor may choose to distribute the Program in object code form under its
400
- own license agreement, provided that:
401
-
402
- a) it complies with the terms and conditions of this Agreement; and
403
-
404
- b) its license agreement:
405
-
406
- i) effectively disclaims on behalf of all Contributors all warranties and
407
- conditions, express and implied, including warranties or conditions of title and
408
- non-infringement, and implied warranties or conditions of merchantability and
409
- fitness for a particular purpose;
410
-
411
- ii) effectively excludes on behalf of all Contributors all liability for
412
- damages, including direct, indirect, special, incidental and consequential
413
- damages, such as lost profits;
414
-
415
- iii) states that any provisions which differ from this Agreement are offered
416
- by that Contributor alone and not by any other party; and
417
-
418
- iv) states that source code for the Program is available from such
419
- Contributor, and informs licensees how to obtain it in a reasonable manner on or
420
- through a medium customarily used for software exchange.
421
-
422
- When the Program is made available in source code form:
423
-
424
- a) it must be made available under this Agreement; and
425
-
426
- b) a copy of this Agreement must be included with each copy of the Program.
427
-
428
- Contributors may not remove or alter any copyright notices contained within the
429
- Program.
430
-
431
- Each Contributor must identify itself as the originator of its Contribution, if
432
- any, in a manner that reasonably allows subsequent Recipients to identify the
433
- originator of the Contribution.
434
-
435
- 4. COMMERCIAL DISTRIBUTION
436
-
437
- Commercial distributors of software may accept certain responsibilities with
438
- respect to end users, business partners and the like. While this license is
439
- intended to facilitate the commercial use of the Program, the Contributor who
440
- includes the Program in a commercial product offering should do so in a manner
441
- which does not create potential liability for other Contributors. Therefore, if
442
- a Contributor includes the Program in a commercial product offering, such
443
- Contributor ("Commercial Contributor") hereby agrees to defend and indemnify
444
- every other Contributor ("Indemnified Contributor") against any losses, damages
445
- and costs (collectively "Losses") arising from claims, lawsuits and other legal
446
- actions brought by a third party against the Indemnified Contributor to the
447
- extent caused by the acts or omissions of such Commercial Contributor in
448
- connection with its distribution of the Program in a commercial product
449
- offering. The obligations in this section do not apply to any claims or Losses
450
- relating to any actual or alleged intellectual property infringement. In order
451
- to qualify, an Indemnified Contributor must: a) promptly notify the Commercial
452
- Contributor in writing of such claim, and b) allow the Commercial Contributor to
453
- control, and cooperate with the Commercial Contributor in, the defense and any
454
- related settlement negotiations. The Indemnified Contributor may participate in
455
- any such claim at its own expense.
456
-
457
- For example, a Contributor might include the Program in a commercial product
458
- offering, Product X. That Contributor is then a Commercial Contributor. If that
459
- Commercial Contributor then makes performance claims, or offers warranties
460
- related to Product X, those performance claims and warranties are such
461
- Commercial Contributor's responsibility alone. Under this section, the
462
- Commercial Contributor would have to defend claims against the other
463
- Contributors related to those performance claims and warranties, and if a court
464
- requires any other Contributor to pay any damages as a result, the Commercial
465
- Contributor must pay those damages.
466
-
467
- 5. NO WARRANTY
468
-
469
- EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN
470
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR
471
- IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE,
472
- NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each
473
- Recipient is solely responsible for determining the appropriateness of using and
474
- distributing the Program and assumes all risks associated with its exercise of
475
- rights under this Agreement, including but not limited to the risks and costs of
476
- program errors, compliance with applicable laws, damage to or loss of data,
477
- programs or equipment, and unavailability or interruption of operations.
478
-
479
- 6. DISCLAIMER OF LIABILITY
480
-
481
- EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY
482
- CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL,
483
- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST
484
- PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
485
- STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
486
- OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS
487
- GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
488
-
489
- 7. GENERAL
490
-
491
- If any provision of this Agreement is invalid or unenforceable under applicable
492
- law, it shall not affect the validity or enforceability of the remainder of the
493
- terms of this Agreement, and without further action by the parties hereto, such
494
- provision shall be reformed to the minimum extent necessary to make such
495
- provision valid and enforceable.
496
-
497
- If Recipient institutes patent litigation against a Contributor with respect to
498
- a patent applicable to software (including a cross-claim or counterclaim in a
499
- lawsuit), then any patent licenses granted by that Contributor to such Recipient
500
- under this Agreement shall terminate as of the date such litigation is filed. In
501
- addition, if Recipient institutes patent litigation against any entity
502
- (including a cross-claim or counterclaim in a lawsuit) alleging that the Program
503
- itself (excluding combinations of the Program with other software or hardware)
504
- infringes such Recipient's patent(s), then such Recipient's rights granted under
505
- Section 2(b) shall terminate as of the date such litigation is filed.
506
-
507
- All Recipient's rights under this Agreement shall terminate if it fails to
508
- comply with any of the material terms or conditions of this Agreement and does
509
- not cure such failure in a reasonable period of time after becoming aware of
510
- such noncompliance. If all Recipient's rights under this Agreement terminate,
511
- Recipient agrees to cease use and distribution of the Program as soon as
512
- reasonably practicable. However, Recipient's obligations under this Agreement
513
- and any licenses granted by Recipient relating to the Program shall continue and
514
- survive.
515
-
516
- Everyone is permitted to copy and distribute copies of this Agreement, but in
517
- order to avoid inconsistency the Agreement is copyrighted and may only be
518
- modified in the following manner. The Agreement Steward reserves the right to
519
- publish new versions (including revisions) of this Agreement from time to time.
520
- No one other than the Agreement Steward has the right to modify this Agreement.
521
- IBM is the initial Agreement Steward. IBM may assign the responsibility to serve
522
- as the Agreement Steward to a suitable separate entity. Each new version of the
523
- Agreement will be given a distinguishing version number. The Program (including
524
- Contributions) may always be distributed subject to the version of the Agreement
525
- under which it was received. In addition, after a new version of the Agreement
526
- is published, Contributor may elect to distribute the Program (including its
527
- Contributions) under the new version. Except as expressly stated in Sections
528
- 2(a) and 2(b) above, Recipient receives no rights or licenses to the
529
- intellectual property of any Contributor under this Agreement, whether
530
- expressly, by implication, estoppel or otherwise. All rights in the Program not
531
- expressly granted under this Agreement are reserved.
532
-
533
- This Agreement is governed by the laws of the State of New York and the
534
- intellectual property laws of the United States of America. No party to this
535
- Agreement will bring a legal action under this Agreement more than one year
536
- after the cause of action arose. Each party waives its rights to a jury trial in
537
- any resulting litigation.
@@ -1,12 +1,5 @@
1
1
  ElasticSearch
2
- Copyright 2009-2011 Elastic Search and Shay Banon
2
+ Copyright 2009-2011 ElasticSearch and Shay Banon
3
3
 
4
4
  This product includes software developed by The Apache Software
5
5
  Foundation (http://www.apache.org/).
6
-
7
- This product makes use of the google-collections library from
8
- http://code.google.com/p/google-collections/.
9
- Copyright (C) 2008 Google Inc.
10
-
11
- Yaml support uses SnakeYaml Copyright of Andrey Somov under the
12
- Apache 2 License.
@@ -36,7 +36,7 @@ First of all, DON'T PANIC. It will take 5 minutes to get the gist of what Elasti
36
36
 
37
37
  h3. Installation
38
38
 
39
- * Download and unzip the ElasticSearch installation.
39
+ * "Download":http://www.elasticsearch.org/download and unzip the ElasticSearch official distribution.
40
40
  * Run @bin/elasticsearch -f@ on unix, or @bin/elasticsearch.bat@ on windows.
41
41
  * Run @curl -X GET http://localhost:9200/@.
42
42
  * Start more servers ...
@@ -196,18 +196,18 @@ We have just covered a very small portion of what ElasticSearch is all about. Fo
196
196
 
197
197
  h3. Building from Source
198
198
 
199
- ElasticSearch uses "Gradle":http://www.gradle.org for its build system.
199
+ ElasticSearch uses "Maven":http://maven.apache.org for its build system.
200
200
 
201
- In order to create a distribution, simply run the @./gradlew@ command in the cloned directory.
201
+ In order to create a distribution, simply run the @mvn package -DskipTests@ command in the cloned directory.
202
202
 
203
- The distribution will be created under @build/distributions@.
203
+ The distribution will be created under @target/releases@.
204
204
 
205
205
  h1. License
206
206
 
207
207
  <pre>
208
208
  This software is licensed under the Apache 2 license, quoted below.
209
209
 
210
- Copyright 2009-2011 Shay Banon and ElasticSearch <http://www.elasticsearch.com>
210
+ Copyright 2009-2011 Shay Banon and ElasticSearch <http://www.elasticsearch.org>
211
211
 
212
212
  Licensed under the Apache License, Version 2.0 (the "License"); you may not
213
213
  use this file except in compliance with the License. You may obtain a copy of
@@ -17,8 +17,7 @@
17
17
  # Optionally, exact memory values can be set using the following values, note,
18
18
  # they can still be set using the `ES_JAVA_OPTS`. Sample format include "512m", and "10g".
19
19
  #
20
- # ES_MIN_MEM -- The minimum number of memory to allocate.
21
- # ES_MAX_MEM -- The maximum number of memory to allocate.
20
+ # ES_HEAP_SIZE -- Sets both the minimum and maximum memory to allocate (recommended)
22
21
  #
23
22
  # As a convenience, a fragment of shell is sourced in order to set one or
24
23
  # more of these variables. This so-called `include' can be placed in a
@@ -111,21 +110,20 @@ launch_service()
111
110
  pidpath=$1
112
111
  foreground=$2
113
112
  props=$3
114
- es_parms="-Delasticsearch -Des.path.home=$ES_HOME"
113
+ es_parms="-Delasticsearch"
115
114
 
116
115
  if [ "x$pidpath" != "x" ]; then
117
- es_parms="$es_parms -Des-pidfile=$pidpath"
116
+ es_parms="$es_parms -Des.pidfile=$pidpath"
118
117
  fi
119
118
 
120
- # The es-daemon option will tell ElasticSearch to close stdout/stderr,
121
- # but it's up to us not to background.
119
+ # The es-foreground option will tell ElasticSearch not to close stdout/stderr, but it's up to us not to background.
122
120
  if [ "x$foreground" != "x" ]; then
123
- es_parms="$es_parms -Des-foreground=yes"
124
- exec "$JAVA" $JAVA_OPTS $ES_JAVA_OPTS $es_parms -cp $ES_CLASSPATH $props \
121
+ es_parms="$es_parms -Des.foreground=yes"
122
+ exec "$JAVA" $JAVA_OPTS $ES_JAVA_OPTS $es_parms -Des.path.home="$ES_HOME" -cp "$ES_CLASSPATH" $props \
125
123
  org.elasticsearch.bootstrap.ElasticSearch
126
124
  else
127
125
  # Startup ElasticSearch, background it, and write the pid.
128
- exec "$JAVA" $JAVA_OPTS $ES_JAVA_OPTS $es_parms -cp $ES_CLASSPATH $props \
126
+ exec "$JAVA" $JAVA_OPTS $ES_JAVA_OPTS $es_parms -Des.path.home="$ES_HOME" -cp "$ES_CLASSPATH" $props \
129
127
  org.elasticsearch.bootstrap.ElasticSearch <&- &
130
128
  [ ! -z "$pidpath" ] && printf '%d' $! > "$pidpath"
131
129
  fi
@@ -140,7 +138,7 @@ eval set -- "$args"
140
138
  while true; do
141
139
  case $1 in
142
140
  -v)
143
- "$JAVA" $JAVA_OPTS $ES_JAVA_OPTS $es_parms -cp $ES_CLASSPATH $props \
141
+ "$JAVA" $JAVA_OPTS $ES_JAVA_OPTS $es_parms -Des.path.home="$ES_HOME" -cp "$ES_CLASSPATH" $props \
144
142
  org.elasticsearch.Version
145
143
  exit 0
146
144
  ;;
@@ -6,6 +6,10 @@ fi
6
6
  if [ "x$ES_MAX_MEM" = "x" ]; then
7
7
  ES_MAX_MEM=1g
8
8
  fi
9
+ if [ "x$ES_HEAP_SIZE" != "x" ]; then
10
+ ES_MIN_MEM=$ES_HEAP_SIZE
11
+ ES_MAX_MEM=$ES_HEAP_SIZE
12
+ fi
9
13
 
10
14
  # min and max heap sizes should be set to the same value to avoid
11
15
  # stop-the-world GC pauses during resize, and so that we can lock the
@@ -14,6 +18,11 @@ fi
14
18
  JAVA_OPTS="$JAVA_OPTS -Xms${ES_MIN_MEM}"
15
19
  JAVA_OPTS="$JAVA_OPTS -Xmx${ES_MAX_MEM}"
16
20
 
21
+ # new generation
22
+ if [ "x$ES_HEAP_NEWSIZE" != "x" ]; then
23
+ JAVA_OPTS="$JAVA_OPTS -Xmn${ES_HEAP_NEWSIZE}"
24
+ fi
25
+
17
26
  # reduce the per-thread stack size
18
27
  JAVA_OPTS="$JAVA_OPTS -Xss128k"
19
28
 
@@ -26,12 +35,13 @@ JAVA_OPTS="$JAVA_OPTS -Xss128k"
26
35
 
27
36
  JAVA_OPTS="$JAVA_OPTS -XX:+UseParNewGC"
28
37
  JAVA_OPTS="$JAVA_OPTS -XX:+UseConcMarkSweepGC"
29
- JAVA_OPTS="$JAVA_OPTS -XX:+CMSParallelRemarkEnabled"
30
- JAVA_OPTS="$JAVA_OPTS -XX:SurvivorRatio=8"
31
- JAVA_OPTS="$JAVA_OPTS -XX:MaxTenuringThreshold=1"
38
+
32
39
  JAVA_OPTS="$JAVA_OPTS -XX:CMSInitiatingOccupancyFraction=75"
33
40
  JAVA_OPTS="$JAVA_OPTS -XX:+UseCMSInitiatingOccupancyOnly"
34
41
 
42
+ # When running under Java 7
43
+ #JAVA_OPTS="$JAVA_OPTS -XX:+UseCondCardMark"
44
+
35
45
  # GC logging options -- uncomment to enable
36
46
  # JAVA_OPTS="$JAVA_OPTS -XX:+PrintGCDetails"
37
47
  # JAVA_OPTS="$JAVA_OPTS -XX:+PrintGCTimeStamps"
@@ -28,4 +28,4 @@ else
28
28
  JAVA=`which java`
29
29
  fi
30
30
 
31
- exec $JAVA -Delasticsearch -Des.path.home="$ES_HOME" -cp "$ES_HOME/lib/*" org.elasticsearch.plugins.PluginManager $*
31
+ exec $JAVA -Xmx64m -Xms16m -Delasticsearch -Des.path.home="$ES_HOME" -cp "$ES_HOME/lib/*" org.elasticsearch.plugins.PluginManager $*
@@ -82,6 +82,10 @@
82
82
  #
83
83
  # node.rack: rack314
84
84
 
85
+ # By default, multiple nodes are allowed to start from the same installation location
86
+ # to disable it, set the following:
87
+ # node.max_local_storage_nodes: 1
88
+
85
89
 
86
90
  #################################### Index ####################################
87
91
 
@@ -161,6 +165,13 @@
161
165
  # path.plugins: /path/to/plugins
162
166
 
163
167
 
168
+ #################################### Plugin ###################################
169
+
170
+ # If a plugin listed here is not installed for current node, the node will not start.
171
+ #
172
+ # plugin.mandatory: mapper-attachments,lang-groovy
173
+
174
+
164
175
  ################################### Memory ####################################
165
176
 
166
177
  # ElasticSearch performs poorly when JVM starts swapping: you should ensure that
@@ -234,7 +245,8 @@
234
245
  # gateway.type: local
235
246
 
236
247
  # Settings below control how and when to start the initial recovery process on
237
- # a full cluster restart (to reuse as much local data as possible).
248
+ # a full cluster restart (to reuse as much local data as possible when using shared
249
+ # gateway).
238
250
 
239
251
  # Allow recovery process after N nodes in a cluster are up:
240
252
  #
@@ -246,7 +258,8 @@
246
258
  # gateway.recover_after_time: 5m
247
259
 
248
260
  # Set how many nodes are expected in this cluster. Once these N nodes
249
- # are up, begin recovery process immediately:
261
+ # are up (and recover_after_nodes is met), begin recovery process immediately
262
+ # (without waiting for recover_after_time to expire):
250
263
  #
251
264
  # gateway.expected_nodes: 2
252
265
 
@@ -284,7 +297,7 @@
284
297
 
285
298
  # Set to ensure a node sees N other master eligible nodes to be considered
286
299
  # operational within the cluster. Set this option to a higher value (2-4)
287
- # for large clusters:
300
+ # for large clusters (>3 nodes):
288
301
  #
289
302
  # discovery.zen.minimum_master_nodes: 1
290
303
 
@@ -335,3 +348,13 @@
335
348
  #index.search.slowlog.threshold.fetch.info: 800ms
336
349
  #index.search.slowlog.threshold.fetch.debug: 500ms
337
350
  #index.search.slowlog.threshold.fetch.trace: 200ms
351
+
352
+ ################################## GC Logging ################################
353
+
354
+ #monitor.jvm.gc.ParNew.warn: 1000ms
355
+ #monitor.jvm.gc.ParNew.info: 700ms
356
+ #monitor.jvm.gc.ParNew.debug: 400ms
357
+
358
+ #monitor.jvm.gc.ConcurrentMarkSweep.warn: 10s
359
+ #monitor.jvm.gc.ConcurrentMarkSweep.info: 5s
360
+ #monitor.jvm.gc.ConcurrentMarkSweep.debug: 2s
metadata CHANGED
@@ -1,25 +1,36 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: springboard
3
- version: !ruby/object:Gem::Version
4
- version: 0.18.7.1
3
+ version: !ruby/object:Gem::Version
4
+ hash: 83
5
5
  prerelease:
6
+ segments:
7
+ - 0
8
+ - 19
9
+ - 0
10
+ version: 0.19.0
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Grant Rodgers
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2012-01-16 00:00:00.000000000Z
17
+
18
+ date: 2012-03-07 00:00:00 Z
13
19
  dependencies: []
14
- description: Run elasticsearch as a gem binary
15
- email:
20
+
21
+ description: |-
22
+ Packages up elasticsearch in a gem and adds a ruby executable to run it easily with relative config paths.
23
+ Makes elasticsearch dead simple to develop with.
24
+ email:
16
25
  - grantr@gmail.com
17
- executables:
26
+ executables:
18
27
  - es_plugin
19
28
  - springboard
20
29
  extensions: []
30
+
21
31
  extra_rdoc_files: []
22
- files:
32
+
33
+ files:
23
34
  - .gitignore
24
35
  - Gemfile
25
36
  - LICENSE
@@ -45,9 +56,8 @@ files:
45
56
  - vendor/elasticsearch/bin/plugin
46
57
  - vendor/elasticsearch/config/elasticsearch.yml
47
58
  - vendor/elasticsearch/config/logging.yml
48
- - vendor/elasticsearch/lib/elasticsearch-0.18.7.jar
49
- - vendor/elasticsearch/lib/jline-0.9.94.jar
50
- - vendor/elasticsearch/lib/jna-3.2.7.jar
59
+ - vendor/elasticsearch/lib/elasticsearch-0.19.0.jar
60
+ - vendor/elasticsearch/lib/jna-3.3.0.jar
51
61
  - vendor/elasticsearch/lib/log4j-1.2.16.jar
52
62
  - vendor/elasticsearch/lib/lucene-analyzers-3.5.0.jar
53
63
  - vendor/elasticsearch/lib/lucene-core-3.5.0.jar
@@ -67,29 +77,40 @@ files:
67
77
  - vendor/elasticsearch/lib/sigar/libsigar-x86-linux.so
68
78
  - vendor/elasticsearch/lib/sigar/libsigar-x86-solaris.so
69
79
  - vendor/elasticsearch/lib/sigar/sigar-1.6.4.jar
80
+ - vendor/elasticsearch/lib/sigar/sigar-x86-winnt.lib
70
81
  homepage: http://github.com/grantr/springboard
71
82
  licenses: []
83
+
72
84
  post_install_message:
73
85
  rdoc_options: []
74
- require_paths:
86
+
87
+ require_paths:
75
88
  - lib
76
- required_ruby_version: !ruby/object:Gem::Requirement
89
+ required_ruby_version: !ruby/object:Gem::Requirement
77
90
  none: false
78
- requirements:
79
- - - ! '>='
80
- - !ruby/object:Gem::Version
81
- version: '0'
82
- required_rubygems_version: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - ">="
93
+ - !ruby/object:Gem::Version
94
+ hash: 3
95
+ segments:
96
+ - 0
97
+ version: "0"
98
+ required_rubygems_version: !ruby/object:Gem::Requirement
83
99
  none: false
84
- requirements:
85
- - - ! '>='
86
- - !ruby/object:Gem::Version
87
- version: '0'
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ hash: 3
104
+ segments:
105
+ - 0
106
+ version: "0"
88
107
  requirements: []
108
+
89
109
  rubyforge_project:
90
- rubygems_version: 1.8.10
110
+ rubygems_version: 1.8.15
91
111
  signing_key:
92
112
  specification_version: 3
93
- summary: Packages up elasticsearch in a gem and adds a ruby executable to run it easily
94
- with relative config paths. Makes elasticsearch dead simple to develop with.
113
+ summary: Run elasticsearch as a gem binary
95
114
  test_files: []
115
+
116
+ has_rdoc: