検索
AND検索
OR検索
トップ
|
リロード
|
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
product/pandacloud をテンプレートにして作成
Main Menu
TOP
Readme
Contents
Download
最新の20件
2012-10-25
product/AutoChasingTurtle
2012-04-12
product/TreasureHuntingRobot
2012-03-07
開発/コミュニティー/勉強会
2012-02-19
連絡帳
2012-02-17
product/TreasureHunter
2011-11-08
product/pandacloud
2010-11-10
SIProp育英基金
2010-02-08
開発/コミュニティー/勉強会/2010/01/09
2010-01-01
開発/コミュニティー/勉強会/2009/09/13
2009-12-01
執筆/ascii_mw/200911
執筆
2009-05-28
開発/コミュニティー/定例ミーティング/2009/05/28
開発/コミュニティー/定例ミーティング
FrontPage
スケジュール
リリース
2009-04-27
開発/コミュニティー/勉強会/2009/04/23
2009-04-06
開発/コミュニティー/勉強会/2009/03/13
2009-03-09
開発/コミュニティー/勉強会/2009/03/07
2008-11-03
開発/コミュニティー/定例ミーティング/2008/11/02
Total:0/Today:0
開始行:
[[FrontPage]]
*What's this? [#t2517dfb]
-[[Google App Engine:http://code.google.com/appengine]] r...
&ref(Structure.png);
***Materials [#rb9533c4]
-Presentation material
--[[On slideshare:http://www.slideshare.net/noritsuna/pan...
-Video
--[[On YouTube:http://www.youtube.com/watch?v=pSGNf0KZ71c]]
-Twitter
--[[Linaro:https://twitter.com/#!/LinaroConnect/status/13...
-Blog
--[[Linaro Blog:http://www.linaro.org/linaro-blog/2011/11...
&BR;
&BR;
&BR;
-Pictures~
&ref(server_front.jpg);
&ref(server_side.jpg);~
&ref(codereview.png);
&BR;
*Why? [#dd51ec12]
-This is a very powersaving server!
--The powersaving is the most important issue for server.~
&ref(powersaving.png);
*Using hardwares & softwares [#k6673c1e]
***Hardwares [#r1276cb5]
-[[Pandaboard x 6:http://pandaboard.org/]]
--[[Linaro/Ubuntu:http://www.linaro.org/downloads/]]
***Middleware [#v367ba79]
-[[Google App Engine:http://code.google.com/appengine]]
--Sample GAE Application
---[[Rietveld:http://code.google.com/intl/ja/appengine/ar...
---Code review system(ITS) for GAE
--Datastore Backend
---[[MySQL:http://www.mysql.com]]
--Memory cache
---[[Memcached:http://memcached.org]]
--Task Queue / Messaging
---[[RabbitMQ:http://www.rabbitmq.com]]
---[[Ejabberd:http://www.process-one.net/en/ejabberd]]
--HTTP Server via FastCGI
---[[NGINX:http://nginx.net/]]
---[[Apache2:http://httpd.apache.org/]]
---[[FastCGI:http://www.fastcgi.com]]
--Supervisor
---[[Supervisor:http://supervisord.org]]
--Load balancer
---Apache2’s load balancer
*How to setup [#b4562a9c]
+Setup Linaro/Ubuntu
++Please look at [[Linaro's homepage:http://www.linaro.or...
+Install softwares needed by [[TyhoonAE:http://code.goog...
--You have to install as ''NOT'' root user.
---OpenJDK 6
---MySQL
---Python
---Erlang
---Apache2 & proxy
---gettext
---xsltproc
---expat1
++apt-get commands:
$ sudo apt-get update
$ sudo apt-get install openjdk-6-jdk mysql-server python...
+Build [[TyhoonAE:http://code.google.com/p/typhoonae/]]
--You have to install as ''NOT'' root user.
++Download [[typhoonae-buildout-0.2.0:http://typhoonae.go...
++Unzip to ''/home/linaro/tyhoonae''
++Edit 'buildout.cfg"
+++pcre's URL is wrong. Change to "http://vps.googlecode....
++Exec following commands:
$ sudo python bootstrap.py
$ ./bin/buildout
---If you have an error & stop command, you shuold try fo...
+++Stop "generate_app" part
---Edit "./parts/rabbitmq/Makefile"~
Change line:
From:
TARGETS=$(EBIN_DIR)/rabbit.app $(INCLUDE_DIR)/rabbit_fra...
To:
TARGETS=$(INCLUDE_DIR)/rabbit_framing.hrl $(BEAM_TARGETS)
Delete line:
$(EBIN_DIR)/rabbit.app: $(EBIN_DIR)/rabbit_app.in $(BEAM...
escript generate_app $(EBIN_DIR) $@ < $<
+++Stop "checking erl" part
--Edit "./eggs/rod.recipe.ejabberd-1.1.3-py2.7.egg/rod/re...
Delete line:
retcode = subprocess.call(cmd)
if retcode != 0:
raise Exception("building ejabberd failed")
--Change files:
wget http://www.noritsuna.com/download/buildout.cfg
wget http://www.noritsuna.com/download/ejabberd-2.1.5.ta...
cp ejabberd-2.1.5.tar.gz ./downloads/
+++If it stops other part, you shuold try again "./bin/bu...
+Setup configs
++[[TyhoonAE:http://code.google.com/p/typhoonae/]]
+++Change "typhoonae.cfg"
datastore = mysql
mysql_db = mysql
mysql_host = [MySQL server's IP Address]
mysql_passwd = [MySQL root's password]
mysql_user = root
++MySQL
+++Change "/etc/mysql/my.ini" ((This setting has some sec...
Delete line:
bind-address = 127.0.0.1
+++Change grant connection limit
mysql -u root -p
grant all on *.* to root@"[your network address].%" iden...
Ex.
grant all on *.* to root@"192.168.1.%" identified by 'pa...
+++If you can't connet to MySQL, you have to change MySQL...
Add to "./eggs/MySQL_python-1.2.3c1-py2.7-linux-armv7l.eg...
kwargs2['client_flag'] = client_flag
kwargs2['db'] = 'mysql'
kwargs2['host'] = '[MySQL server's IP address]'
kwargs2['user'] = 'root'
kwargs2['passwd'] = '[MySQL root password]'
++Apache
+++Enable some mobules:
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_balancer_module modules/mod_proxy_balan...
LoadModule proxy_connect_module modules/mod_proxy_connec...
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule rewrite_module modules/mod_rewrite.so
+++Edit "/etc/apache2/sites-available/001-default"~
Add following lines:
ProxyRequests Off
ProxyPass / balancer://cluster/ lbmethod=byrequests
ProxyPassReverse / balancer://cluster/
<Proxy *>
Order Deny,Allow
Allow from all
</Proxy>
<Proxy balancer://cluster/>
BalancerMember http://[Panda server's IP address]/ loadf...
BalancerMember http://[Panda server's IP address]/ loadf...
BalancerMember http://[Panda server's IP address]/ loadf...
</Proxy>
***Install GAE application [#h89ced0a]
-Ex.Rietveld
--Get Rietveld for panda
wget http://www.noritsuna.com/download/rietveld-panda.ta...
--Install Rietveld
cd [TyphoonAE dir]
./bin/apptool --datastore=mysql [Rietveld unziped dir]/...
***Manage GAE server [#i7d746da]
-Start
./bin/supervisord
-Shutdown
./bin/supervisorctl shutdown
-Check status
./bin/supervisorctl
*Info [#kd2988ad]
***Contact us [#x3299774]
-info
--info atmark siprop.org
-Noritsuna
--noritsuna atmark siprop.org
終了行:
[[FrontPage]]
*What's this? [#t2517dfb]
-[[Google App Engine:http://code.google.com/appengine]] r...
&ref(Structure.png);
***Materials [#rb9533c4]
-Presentation material
--[[On slideshare:http://www.slideshare.net/noritsuna/pan...
-Video
--[[On YouTube:http://www.youtube.com/watch?v=pSGNf0KZ71c]]
-Twitter
--[[Linaro:https://twitter.com/#!/LinaroConnect/status/13...
-Blog
--[[Linaro Blog:http://www.linaro.org/linaro-blog/2011/11...
&BR;
&BR;
&BR;
-Pictures~
&ref(server_front.jpg);
&ref(server_side.jpg);~
&ref(codereview.png);
&BR;
*Why? [#dd51ec12]
-This is a very powersaving server!
--The powersaving is the most important issue for server.~
&ref(powersaving.png);
*Using hardwares & softwares [#k6673c1e]
***Hardwares [#r1276cb5]
-[[Pandaboard x 6:http://pandaboard.org/]]
--[[Linaro/Ubuntu:http://www.linaro.org/downloads/]]
***Middleware [#v367ba79]
-[[Google App Engine:http://code.google.com/appengine]]
--Sample GAE Application
---[[Rietveld:http://code.google.com/intl/ja/appengine/ar...
---Code review system(ITS) for GAE
--Datastore Backend
---[[MySQL:http://www.mysql.com]]
--Memory cache
---[[Memcached:http://memcached.org]]
--Task Queue / Messaging
---[[RabbitMQ:http://www.rabbitmq.com]]
---[[Ejabberd:http://www.process-one.net/en/ejabberd]]
--HTTP Server via FastCGI
---[[NGINX:http://nginx.net/]]
---[[Apache2:http://httpd.apache.org/]]
---[[FastCGI:http://www.fastcgi.com]]
--Supervisor
---[[Supervisor:http://supervisord.org]]
--Load balancer
---Apache2’s load balancer
*How to setup [#b4562a9c]
+Setup Linaro/Ubuntu
++Please look at [[Linaro's homepage:http://www.linaro.or...
+Install softwares needed by [[TyhoonAE:http://code.goog...
--You have to install as ''NOT'' root user.
---OpenJDK 6
---MySQL
---Python
---Erlang
---Apache2 & proxy
---gettext
---xsltproc
---expat1
++apt-get commands:
$ sudo apt-get update
$ sudo apt-get install openjdk-6-jdk mysql-server python...
+Build [[TyhoonAE:http://code.google.com/p/typhoonae/]]
--You have to install as ''NOT'' root user.
++Download [[typhoonae-buildout-0.2.0:http://typhoonae.go...
++Unzip to ''/home/linaro/tyhoonae''
++Edit 'buildout.cfg"
+++pcre's URL is wrong. Change to "http://vps.googlecode....
++Exec following commands:
$ sudo python bootstrap.py
$ ./bin/buildout
---If you have an error & stop command, you shuold try fo...
+++Stop "generate_app" part
---Edit "./parts/rabbitmq/Makefile"~
Change line:
From:
TARGETS=$(EBIN_DIR)/rabbit.app $(INCLUDE_DIR)/rabbit_fra...
To:
TARGETS=$(INCLUDE_DIR)/rabbit_framing.hrl $(BEAM_TARGETS)
Delete line:
$(EBIN_DIR)/rabbit.app: $(EBIN_DIR)/rabbit_app.in $(BEAM...
escript generate_app $(EBIN_DIR) $@ < $<
+++Stop "checking erl" part
--Edit "./eggs/rod.recipe.ejabberd-1.1.3-py2.7.egg/rod/re...
Delete line:
retcode = subprocess.call(cmd)
if retcode != 0:
raise Exception("building ejabberd failed")
--Change files:
wget http://www.noritsuna.com/download/buildout.cfg
wget http://www.noritsuna.com/download/ejabberd-2.1.5.ta...
cp ejabberd-2.1.5.tar.gz ./downloads/
+++If it stops other part, you shuold try again "./bin/bu...
+Setup configs
++[[TyhoonAE:http://code.google.com/p/typhoonae/]]
+++Change "typhoonae.cfg"
datastore = mysql
mysql_db = mysql
mysql_host = [MySQL server's IP Address]
mysql_passwd = [MySQL root's password]
mysql_user = root
++MySQL
+++Change "/etc/mysql/my.ini" ((This setting has some sec...
Delete line:
bind-address = 127.0.0.1
+++Change grant connection limit
mysql -u root -p
grant all on *.* to root@"[your network address].%" iden...
Ex.
grant all on *.* to root@"192.168.1.%" identified by 'pa...
+++If you can't connet to MySQL, you have to change MySQL...
Add to "./eggs/MySQL_python-1.2.3c1-py2.7-linux-armv7l.eg...
kwargs2['client_flag'] = client_flag
kwargs2['db'] = 'mysql'
kwargs2['host'] = '[MySQL server's IP address]'
kwargs2['user'] = 'root'
kwargs2['passwd'] = '[MySQL root password]'
++Apache
+++Enable some mobules:
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_balancer_module modules/mod_proxy_balan...
LoadModule proxy_connect_module modules/mod_proxy_connec...
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule rewrite_module modules/mod_rewrite.so
+++Edit "/etc/apache2/sites-available/001-default"~
Add following lines:
ProxyRequests Off
ProxyPass / balancer://cluster/ lbmethod=byrequests
ProxyPassReverse / balancer://cluster/
<Proxy *>
Order Deny,Allow
Allow from all
</Proxy>
<Proxy balancer://cluster/>
BalancerMember http://[Panda server's IP address]/ loadf...
BalancerMember http://[Panda server's IP address]/ loadf...
BalancerMember http://[Panda server's IP address]/ loadf...
</Proxy>
***Install GAE application [#h89ced0a]
-Ex.Rietveld
--Get Rietveld for panda
wget http://www.noritsuna.com/download/rietveld-panda.ta...
--Install Rietveld
cd [TyphoonAE dir]
./bin/apptool --datastore=mysql [Rietveld unziped dir]/...
***Manage GAE server [#i7d746da]
-Start
./bin/supervisord
-Shutdown
./bin/supervisorctl shutdown
-Check status
./bin/supervisorctl
*Info [#kd2988ad]
***Contact us [#x3299774]
-info
--info atmark siprop.org
-Noritsuna
--noritsuna atmark siprop.org
ページ名: