Skip to content

Commit

Permalink
Update to elasticsearch 0.20.1 and memcache 2.2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
ruflin committed Dec 16, 2012
1 parent 3bcd162 commit 609b08c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 12 deletions.
6 changes: 3 additions & 3 deletions test/bin/install_php_memcache.sh
@@ -1,7 +1,7 @@
#!/bin/bash

# Build and install PHP Memcache extension
wget http://pecl.php.net/get/memcache-2.2.6.tgz
tar -xzf memcache-2.2.6.tgz
sh -c "cd memcache-2.2.6 && phpize && ./configure --enable-memcache && make && sudo make install"
wget http://pecl.php.net/get/memcache-2.2.7.tgz
tar -xzf memcache-2.2.7.tgz
sh -c "cd memcache-2.2.7 && phpize && ./configure --enable-memcache && make && sudo make install"
echo "extension=memcache.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
26 changes: 17 additions & 9 deletions test/bin/run_elasticsearch.sh
@@ -1,20 +1,28 @@
#!/bin/bash

wget http://cloud.github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.19.11.tar.gz
tar -xzf elasticsearch-0.19.11.tar.gz
sed 's/# index.number_of_shards: 1/index.number_of_shards: 2/' elasticsearch-0.19.11/config/elasticsearch.yml > elasticsearch-0.19.11/config/elasticsearch.yml
sed 's/# index.number_of_replicas: 0/index.number_of_replicas: 0/' elasticsearch-0.19.11/config/elasticsearch.yml > elasticsearch-0.19.11/config/elasticsearch.yml
sed 's/# discovery.zen.ping.multicast.enabled: false/discovery.zen.ping.multicast.enabled: false/' elasticsearch-0.19.11/config/elasticsearch.yml > elasticsearch-0.19.11/config/elasticsearch.yml
elasticsearch-0.19.11/bin/plugin -install elasticsearch/elasticsearch-mapper-attachments/1.6.0
wget http://cloud.github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.20.1.tar.gz
tar -xzf elasticsearch-0.20.1.tar.gz
sed 's/# index.number_of_shards: 1/index.number_of_shards: 2/' elasticsearch-0.20.1/config/elasticsearch.yml > elasticsearch-0.20.1/config/elasticsearch.yml
sed 's/# index.number_of_replicas: 0/index.number_of_replicas: 0/' elasticsearch-0.20.1/config/elasticsearch.yml > elasticsearch-0.20.1/config/elasticsearch.yml
sed 's/# discovery.zen.ping.multicast.enabled: false/discovery.zen.ping.multicast.enabled: false/' elasticsearch-0.20.1/config/elasticsearch.yml > elasticsearch-0.20.1/config/elasticsearch.yml
elasticsearch-0.20.1/bin/plugin -install elasticsearch/elasticsearch-mapper-attachments/1.6.0

export JAVA_OPTS="-server"
elasticsearch-0.19.11/bin/elasticsearch &
elasticsearch-0.20.1/bin/elasticsearch &
elasticsearch-0.20.1/bin/elasticsearch &

echo "Waiting until elasticsearch is ready on port 9200"
echo "Waiting until elasticsearch node 1 is ready on port 9200"
while [[ -z `curl -s 'http://localhost:9200' ` ]]
do
echo -n "."
sleep 2s
done

echo "elasticsearch is up"
echo "Waiting until elasticsearch node 2 is ready on port 9201"
while [[ -z `curl -s 'http://localhost:9201' ` ]]
do
echo -n "."
sleep 2s
done

echo "two elasticsearch nodes are up"

0 comments on commit 609b08c

Please sign in to comment.