【ヘロク】 Heroku Part1 【PostgreSQL】
Migrating to the Celadon Cedar Stack | Heroku Dev Center
http://devcenter.heroku.com/articles/cedar-migration ActiveRecord の find(id) と find_by_id(id) の違い
http://higelog.brassworks.jp/?p=71 https://github.com/tchandy/octopus/wiki/Sharding
https://github.com/tchandy/octopus
class ApplicationController < ActionController::Base
around_filter :select_shard
def select_shard(&block)
Octopus.using(current_user.country, &block)
end
end
https://github.com/mperham/data_fabric
class ApplicationController < ActionController::Base
around_filter :select_shard
private
def select_shard(&block)
DataFabric.activate_shard(:city => @current_user.city, &block)
end
end
ActiveRecord の find(id) と find_by_id(id) の違い
レコードが見つからなかったとき
find(id) 例外が発生する
find_by_id(id) nil が返る
http://higelog.brassworks.jp/?p=71
#{group}_#{shard}_#{environment} - sharding, no replication, e.g. “city_austin_production”
data_fabric :replicated => true, :shard_by => :city
https://github.com/mperham/data_fabric
class ApplicationController < ActionController::Base
around_filter :select_shard
private
def select_shard(&block)
DataFabric.activate_shard(:city => @current_user.city, &block)
end
end
Amazon.co.jp: Heroku Cedar: Jurg van Vliet, Flavia Paganelli, Jasper Geurtsen, Matti Paksula, Att..
http://www.amazon.co.jp/gp/product/1449319637 RoR Wiki 翻訳 Wiki - HowtoUseMultipleDatabases
http://web.archive.org/web/20070217161907/http://techno.hippy.jp/rorwiki/?HowtoUseMultipleDatabases
やむにやまれず:ActiveRecordで異なる複数のDBへ接続しにいく方法
http://blog.livedoor.jp/sparklegate/archives/50376930.html
[Ruby] ActiveRecord で複数のデータベースに接続する方法 « messaliberty 日本語
http://jp.messaliberty.com/2009/02/ruby-how-to-use-multiple-databases-with-activerecord/
Master-Slave clusters to scale out your Rails models reads.
Vertical sharding by moving some of your models to a separate (maybe even dedicated) servers and still keep using AR associations
Horizontal sharding by slicing your models data to pieces and placing those pieces into different databases and/or servers.
http://kovyrin.net/2010/04/16/dbcharmer-rails-can-scale/
https://github.com/kovyrin/db-charmer
http://kovyrin.github.com/db-charmer/
個人でちょっとしたアプリ作って公開するには、無料分だとちょっとDBの容量が心もとなくない?
ただ20GBの共有データベースに課金するぐらいなら、VPS使った方が良くないかな?
個人的に使うアプリを色々と置かせてもらってるので、Herokuは好きなんだけど・・・
それともなんか他に良いやり方あるかな? Get up and running in minutes, and deploy instantly with git.
Focus 100% on your code, and never think about servers
http://www.heroku.com/
ヒト、モノ、カネは有限
選択と集中 Herokuはつかえない。最初は良かったけど結局は高くつく。
さくらとか、カゴヤとかのレンサバの方が百倍マシ。 ケーススタディ11 初期の成功を放棄し、スケールするためのPivotとは?Herokuの場合 | "Lean Startup Japan"
Herokuは2011年1月にSalesforce.comに2億1200万ドル(約172億円!!)で買収されました。
彼らは「さらなる集中」の必要性に気づきます。
そこでの選択は「Webエディタ機能の放棄」でした。
http://leanstartupjapan.org/?p=237 クラウド型ストレージ「Amazon S3」は安いか? − @IT
1つはデータの冗長構成についてで、
Amazonは地理的に離れた最低2つのデータセンターにまたがって3重の冗長度でデータを保持している。
自前で同様のことをするには、RAID構成のストレージを2つのデータセンターに置き、それらの間でリアルタイムのレプリケーションを行う必要がある。
http://www.atmarkit.co.jp/news/200901/09/s3.html HerokuがPostgreSQLのDatabase-as-a-Serviceを開始。しかし料金表がおかしいぞ − Publickey
If a meteor were to wipe out the east coast, you won’t lose your data.
もしも宇宙からの隕石で米東海岸が壊滅しても、データが失われることはありません。
http://www.publickey1.jp/blog/11/herokupostgresqldatabase-as-a-service.html
このぐらいの性能でレプリケーション、バックアップ、リストア、ログ管理等等を
全く気にしなくていいとすれば、
月200でサーバ+DBAなんか雇えないわけで、十分ペイする気がします。
http://postgresql.g.hatena.ne.jp/umitanuki/20111202/1322810909
http://ja.wikipedia.org/wiki/TCO
TCO (Total Cost of Ownership) とは「総保有コスト」のことで、ある設備などの資産に関する、購入から廃棄までに必要な時間と支出の総計。
予算を作成し要求する際、ランニングコスト(保守・運用・維持等のための費用、例として設備・システムなどのメンテナンス、
有償の更新、管理のための人件費、光熱費など)のために必要な経費を考慮に入れず、
初期投資額(イニシャルコスト)だけに注目しがちである。
TCOはそれらをトータルに含めた経費で、実際に支出すべき金銭の全額にあたる。 $ gem install mysql2postgres http://devcenter.heroku.com/articles/heroku-postgres-documentation
Fork (beta)
Forking creates a new database containing a snapshot
of an existing database at the current point in time.
Forked databases do not stay up-to-date with the original database and are writable.
Follow (beta)
Followers are read-only and stay stay up-to-date
with the changes to your database.
Automatic monthly snapshots (i.e. backups) are automatically enabled for standalone databases.
They must be manually enabled when database are provisioned as an add-on.
Standalone databases do not appear through our command-line client.
http://devcenter.heroku.com/articles/differences-standalone-vs-addons-database
TASK FREQUENCY
heroku:scale:dynos Every 10 minutes
heroku:scale:workers Every 10 minutes
http://rubydoc.info/gems/heroku_scale_scheduler/0.0.2/frames How many simultaneous connections will a shared database on Heroku allow? - Quora
You should be safe with up to around 20 connections.
http://www.quora.com/How-many-simultaneous-connections-will-a-shared-database-on-Heroku-allow >>71-72
既存のShared Database 20GBと比較して、これはどういう位置付けになるんだろ? heroku addons:add heroku-shared-postgresql:basic Outside Connections
In addition to being available to the Heroku runtime,
databases can be accessed directly by clients running elsewhere.
All connections require SSL.
http://devcenter.heroku.com/articles/heroku-shared-postgresql
http://devcenter.heroku.com/articles/labs-heroku-shared-postgresql
heroku addons:add heroku-shared-postgresql:basic
heroku addons:add ssl:piggyback
heroku addons:add scheduler:standard
heroku addons:add mailgun:starter
heroku addons:add cron:daily
heroku config:add AWS_S3_SECRET_KEY="xxxx" AWS_S3_KEY_ID="xxxx" BACKUP_BACKET="backet-name"
https://github.com/mataki/heroku_backup_task Bonsai ElasticSearch
Fulltext search that celebrates craftsmanship
https://addons.heroku.com/bonsai MemCachier
Give your database a break with a scalable in-memory cache.
https://addons.heroku.com/memcachier
RoboWhois
Query WHOIS records and check domain availability with a unified, consistent API direcly from your app.
https://addons.heroku.com/robowhois
http://groups.google.com/group/heroku/browse_thread/thread/9f1a5d7d677fb4dc
You can install the free New Relic add-on.
It has an availability monitor feature that will ping your site twice per minute,
thus preventing the dyno from idling.
http://stackoverflow.com/questions/5480337/easy-way-to-prevent-heroku-idling
Apps that have only 1 web dyno will be idled out after one hour of inactivity.
Apps that have more than 1 web dyno are never idled out. Workers dynos are never idled out.
http://devcenter.heroku.com/articles/dyno-idling クラウド上の(多言語)統合開発環境Kodingが$2Mを調達–グローバルな開発コラボが可能に
http://jp.techcrunch.com/archives/20120315koding/
Welcome to Koding. A new way for developers to get work done.
http://koding.com/
Cloud9 IDE - Ajax.org
http://c9.io/
Node.jsを手軽に試せるJavaScript統合開発環境「Cloud9 IDE」、クラウドでの提供開始 − Publickey
http://www.publickey1.jp/blog/11/nodejsjavascriptcloud9_ide.html
Cloud9 IDE is an online development environment for
Javascript and Node.js applications as well as
HTML, CSS, PHP, Java, Ruby and 23 other languages.
http://c9.io/
Reduce Server Deployment Cycles with Heroku - YouTube
http://www.youtube.com/watch?v=YbXiIjJffHk 注目のPaaSを一挙に紹介! 〜Cloud Foundry、OpenShift、Herokuなど − TechTargetジャパン クラウド&SaaS
http://techtarget.itmedia.co.jp/tt/news/1203/21/news02.html Heroku | Dev Center | Inspecting Heroku Processes
http://devcenter.heroku.com/articles/ps DocRaptor
Painless pdf and excel file creation
https://addons.heroku.com/docraptor マスタ/スレーブの冗長化の基本は4台1セット
http://d.hatena.ne.jp/uncafe/20110919
月間57億PV、300台のサーバを運用するミツバチワークスが編み出したインフラ技術
データベースのレプリケーション(複製)では、slaveに最低3台のサーバを適用している。
http://jibun.atmarkit.co.jp/ad/comp/112mitsu/01.html
EC2はサーバーを停止するとデータが消える 2年以上も前の話です。。
EBS用いれば、サーバー停止 してもデータは消えない
EC2はIPアドレスが毎回変わってしまう
EIP(Elastic IP)を用いて固定アドレスを割り当て可能
クラウドは障害がおきると何もできない
物理DC/サーバーも障害は起こる。
クラウドの良さは、障 害からの復帰に複数の手段があり、備えておける
http://www.slideshare.net/kentamagawa/aws-9170814 require 'heroku-api'
heroku = Heroku::API.new(:api_key => API_KEY)
post_ps_scale('app', 'type', 'quantity') # scale 'type' type processes to 'quantity' for 'app' app
https://github.com/heroku/heroku.rb herokuはオワコン。遅いし、高いし、実はあんまり便利でもないし。
イメージで売ってるけど、使ってみると最悪。
さくらやGMOが無ければもう少し頑張れたのに、何だかかわいそう。
クラウド型ストレージ「Amazon S3」は安いか? − @IT
1つはデータの冗長構成についてで、
Amazonは地理的に離れた最低2つのデータセンターにまたがって3重の冗長度でデータを保持している。
自前で同様のことをするには、RAID構成のストレージを2つのデータセンターに置き、それらの間でリアルタイムのレプリケーションを行う必要がある。
http://www.atmarkit.co.jp/news/200901/09/s3.html
このぐらいの性能でレプリケーション、バックアップ、リストア、ログ管理等等を
全く気にしなくていいとすれば、
月200でサーバ+DBAなんか雇えないわけで、十分ペイする気がします。
http://postgresql.g.hatena.ne.jp/umitanuki/20111202/1322810909
HerokuがPostgreSQLのDatabase-as-a-Serviceを開始。しかし料金表がおかしいぞ − Publickey
If a meteor were to wipe out the east coast, you won’t lose your data.
もしも宇宙からの隕石で米東海岸が壊滅しても、データが失われることはありません。
http://www.publickey1.jp/blog/11/herokupostgresqldatabase-as-a-service.html NewRelic Webサービスのパフォーマンスを監視するサービス。
1分毎(設定で変更できます)に死活監視する機能がついているため、
アイドル時間によるherokuのダウン防止にも役立っています。
http://blog.mah-lab.com/2012/03/12/sonicgarden-heroku/
You can install the free New Relic add-on.
It has an availability monitor feature that will
ping your site twice per minute,
thus preventing the dyno from idling.
http://stackoverflow.com/questions/5480337/easy-way-to-prevent-heroku-idling
No need to install any plugin or library into your app,
no need for a specific version of Rails or any framework or language.
Just connect your database to Adminium and get access to a fully featured administration interface.
https://addons.heroku.com/adminium
heroku addons:add adminium
heroku plugins:install git://github.com/isc/heroku-adminium
heroku adminium
https://adminium.herokuapp.com/dashboard
https://devcenter.heroku.com/articles/adminium
All plans have a 1TB database max.
http://www.heroku.com/pricing
1 terabyte of storage
https://postgres.heroku.com/pricing
Network Bandwidth: 2TB/month - Soft
Shared DB processing: Max 200msec per second CPU time - Soft
Dyno RAM usage: 512MB - Hard
Slug Size: 100MB - Hard
Request Length: 30 seconds - Hard
http://policy.heroku.com/aup Heroku Security
https://policy.heroku.com/security
Critical Production Apps Run On Heroku
Priority Support
24x7 support with 2-hour response time from product engineers.
http://go.heroku.com/critical/ PythonAnywhere is a Python development and hosting environment
that displays in your web browser and
runs on our servers.
http://www.pythonanywhere.com/ rake で実行するタスクに時間がかかったとして、
それについて dyno の消費というか料金とかはどうなるのでしょうか?
具体的には、Apple の Push 通知の実行を rake コマンドから行おうと考えておりまして、
数分から数十分程度の処理時間はかかると思っています。
そもそも Apple サーバとの持続的な接続が可能かどうかも知りたいです。
テスト環境だとデバイス数も少なく、一瞬で終わってしまうので、
時間がかかる処理でどうなるのかが良くわかりません。
よろしくお願いします。 jbbs.livedoor.jp/bbs/lite/read.cgi/business/5380/1334663269/l30
「PostgreSQLはデータセンターなど大規模な環境で展開されるケースが非常に多い。
たとえばHerokuなどでは何百万台というサーバを運用している。
こういったプロバイダにとって消費電力の低減は死活問題」(Haas氏)
http://enterprisezine.jp/dbonline/detail/3861?p=2
Connections are the number of processes (dynos + workers + external connections) which can connect to a database simultaneously.
https://devcenter.heroku.com/articles/database Blitz is a Heroku add-on for providing self-service, cloud-based,
integrated load and performance testing for your app.
https://devcenter.heroku.com/articles/blitz
The basic Blitz plan lets you run tests simulating up to 250 users for free (see all Blitz pricing plans). Test using the Blitz UI,
https://addons.heroku.com/blitz
1.Ika: $800/month, 50 connections, 7.5 GB of RAM, 4 compute units
2.Baku: $3200/month, 128 connections, 34 GB of RAM, 13 compute units
3.Mecha: $6400/month, 256 connections, 68 GB of RAM, 26 compute units
http://www.postgresql.org/about/news/1259/ ヘロク、SaaS型DB「Heroku Postgres」の安価なプランをベータ公開
エントリー向け、既存プランの半額以下となる月額50ドル/100ドル
http://www.computerworld.jp/topics/601/クラウド・コンピューティング/202331/ヘロク、SaaS型DB「Heroku%20Postgres」の安価なプランをベータ公開 Ika: $800/month, 50 connections, 7.5 GB of RAM, 4 compute units
Baku: $3200/month, 128 connections, 34 GB of RAM, 13 compute units
Mecha: $6400/month, 256 connections, 68 GB of RAM, 26 compute units
http://blog.heroku.com/archives/2010/11/4/heroku_postgresql/
http://www.postgresql.org/about/news/1259/
$ heroku addons:add heroku-shared-postgresql
$ heroku pg:info HEROKU_SHARED_POSTGRESQL_COPPER
=== HEROKU_SHARED_POSTGRESQL_COPPER
Status: ok
Tables: 5
Bytes: 81920
Connections: 6
Idle connections: 5
Idle connections in txn: 0
Active connections: 1
https://devcenter.heroku.com/articles/heroku-shared-postgresql アカウントごとのAWS全体の月額使用料金の取得
各アカウントで使用しているAWSサービスごとの月額使用料金の取得
Consolidated Billingで紐づいたアカウント全てのAWS月額資料料金の取得
Consolidated Billingで紐づいたアカウント全てで使用した、各AWSサービスの月額使用料金の取得
http://blog.serverworks.co.jp/tech/2012/05/11/estimated-monthly-charge-cloudwatch/
4 unicorn worker instances, on a single Dyno! Prior to Celadon Cedar
4 Unicorn Workers
Time taken for tests: 0.979 seconds
Requests per second: 918.90 [#/sec]
http://michaelvanrooijen.com/articles/2011/06/01-more-concurrency-on-a-single-heroku-dyno-with-the-new-celadon-cedar-stack/ How to get 4x the performance out of Heroku with Unicorn
http://blog.railsonfire.com/2012/05/06/Unicorn-on-Heroku.html
Getting Started with Rails 3.x on Heroku/Cedar | Heroku Dev Center
https://devcenter.heroku.com/articles/rails3
I'm using Unicorn and I don't see any data - New Relic Documentation
https://newrelic.com/docs/troubleshooting/im-using-unicorn-and-i-dont-see-any-data how many requests you wish to serve per second.
15 requests per second at 100ms per request would require two dynos.
30 requests per second would require 3 dynos
https://devcenter.heroku.com/articles/backlog-too-deep
https://devcenter.heroku.com/categories/performance
https://devcenter.heroku.com/articles/scaling
Dyno調べた。これが今の限界。 - 絵事後素
http://necopy.heroku.com/14
heroku consoleが原因でブラウザからのアクセスがブロックされる場合がある。 - Sooey
http://journal.sooey.com/99 Use heromon to monitor the queue length of your app !
heromon is a plugin for the heroku CLI, so install it as usual:
$ heroku plugins:install git@github.com:joergviola/heroku-monitor.git
http://heromon.herokuapp.com/
https://github.com/joergviola/heroku-monitor
This shows that Heroku was able to serve 159 requests within a second,
and thus approximately 686,000 requests a day.
http://neilmiddleton.com/getting-more-from-your-heroku-dynos/
Dyno Memory Behavior
Each dyno gets 512MB of memory to operate within.
https://devcenter.heroku.com/articles/dynos
A single dyno on Heroku can process a lot of hits if you tune it
Easiest: HTTP caching on heroku
response.headers['Cache-Control'] = 'public, max-age=300'
Little harder: asset_sync and Rails 3.1
http://www.joshcrews.com/2012/01/a-single-dyno-on-heroku-can-process-a-lot-of-hits-if-you-tune-it
https://github.com/rumblelabs/asset_sync
Pingdom - Web site monitoring for 100% uptime. Measure your downtime.
http://www.pingdom.com/
heroku でアイドリングになるのを回避する
http://d.hatena.ne.jp/kaz_shu/20120308/1331222413
Sqale - 開発者のためのホスティングサービス【スケール】Ruby on Rails 対応。
http://sqale.jp/ Rackhub - リーンでスマートに生きるエンジニアのための開発プラットフォーム
http://rackhub.net/
http://www.fluxflex.com/ herokuコマンドで複数アカウントを使いわける - Sooey
http://journal.sooey.com/162 Worqshop is a small development environment for the iPad with GitHub and Heroku support.
It features a fast code editor with syntax highlighting for Python, Ruby, HTML, CSS, and JavaScript files
http://worqshop.com/ InfoQ: Herokuはどうやって高可用性を確保しているか - QCon Londonの発表から
Erlangのエラーカーネルというコンセプトに着想を得ている。
http://www.infoq.com/jp/news/2012/03/heroku-high-availability-qcon
Herofu - A simple file server for Heroku
http://herofu.heroku.com/ 企業データベースとしてPostgreSQLがMySQLより優れているわけ - builder
http://builder.japan.zdnet.com/db-sql/20407740/ Heroku Status for iPhone 3GS, iPhone 4, iPhone 4S, iPod touch (3rd generation), iPod touch (4th g...
http://itunes.apple.com/app/id527084835
Heroku | Nezumi 2.0 for Managing Heroku Apps 'on-the-go' Now Available for iPhone
http://blog.heroku.com/archives/2012/2/21/nezumi-2-for-iphone/
http://itunes.apple.com/us/app/nezumi/id346715875?mt=8
Niftyクラウド、PaaSとしてC4SAのサービスを開始 − Publickey Topics
http://www.publickey2.jp/2012/05/niftypaasc4sa.html
アプリケーションの開発・運用を「シンプル」で「スマート」に。ニフティクラウド C4SA
http://c4sa.nifty.com/
MOGOK
http://mogok.jp/
Sqale - 開発者のためのホスティングサービス【スケール】Ruby on Rails 対応。
http://sqale.jp/ Create a JSON API from any HTML page via DOM attributes
http://apify.heroku.com/resources/new Heroku Isn't for Idiots - Randall Degges
http://rdegges.com/heroku-isnt-for-idiots Whenever you make changes to your application and push your Code to GitHub we take the latest version of your code, run all your tests and,
if you want, push to your staging and/or production application.
https://addons.heroku.com/railsonfire
Railsonfire | Heroku Dev Center
https://devcenter.heroku.com/articles/railsonfire
Continuous Integration and Continuous Deployment 4 Ruby - Railsonfire
https://www.railsonfire.com/
App Store - Doppler for Heroku
http://itunes.apple.com/app/id387552592
Heroku Status for iPhone 3GS, iPhone 4, iPhone 4S, iPod touch (3rd generation), iPod touch (4th g...
http://itunes.apple.com/app/id527084835
Heroku | Nezumi 2.0 for Managing Heroku Apps 'on-the-go' Now Available for iPhone
http://blog.heroku.com/archives/2012/2/21/nezumi-2-for-iphone/
http://itunes.apple.com/us/app/nezumi/id346715875?mt=8 Scheduled Jobs and Custom Clock Processes in Ruby with Clockwork | Heroku Dev Center
https://devcenter.heroku.com/articles/clock-processes-ruby
Scheduled Jobs and Custom Clock Processes | Heroku Dev Center
https://devcenter.heroku.com/articles/scheduled-jobs-custom-clock-processes Ladies and Gentlemen:
Attention,please!
My name is Charles Han. I am from the hometown of Wang Yangming王陽明おうようめいand Zhu Shunshui朱舜水しゅ しゅんすい.
/ //////////////////// /////////////// Investjp.com
Investkr.com //////// ///// financejp.com
Financekr.com /////// /////
These four domains seek appraisal and cooperation, Any individuals and corporations which have any ideas or comments please contact me via email charlesjqhan@163.com msn charlesjqhan@msn.com .
女士们,先生们:
我是Charles,来自王阳明和朱舜水的故乡。
/ // ///////////////////////////// //// Investjp.com
Investkr.com //////// ///// financejp.com
Financekr.com /////// /////
以上域名寻求评估和合作,任何有想法和评论的个人和公司请联系我。
Charlesと申します。王陽明と朱舜水の故郷から参りました。
/ /// ////////////////// /////////////// Investjp.com
Investkr.com //////// ///// financejp.com
Financekr.com /////// /////
以上のドメインが合作と評価を求めています。興味がある方々はご連絡ください。
email charlesjqhan@163.com msn charlesjqhan@msn.com
List all app releases:
releases = app.releases
And rollback to any release:
releases.rollback 'v1'
https://github.com/goshakkk/ruroku 【AWS発表】 AWS SDK for Rubyを提供開始 - Amazon Web Services ブログ
http://aws.typepad.com/aws_japan/2011/07/introducing-the-aws-sdk-for-ruby.html
b = Bookmark.new(
:title => 'Amazon EC2',
:url => 'http://aws.amazon.com/ec2',
:tags => [ 'aws', 'cloud', 'compute'])
b.save Heroku | クラウドアプリケーションプラットフォーム
http://herokujp.herokuapp.com/ Semaphore - Hosted Continuous Integration Service for Ruby and Rails
https://semaphoreapp.com/ Mina
Really fast deployer and server automation tool
http://nadarei.co/mina/ Deploying Rack-based Apps | Heroku Dev Center
https://devcenter.heroku.com/articles/rack セールスフォースのアーキテクチャはPaaSに向いていないと、Ruby on RailsクラウドのEngine Yardがブログで指摘 − Publickey
http://www.publickey1.jp/blog/11/paasruby_on_railsengine_yard.html
Cloud 2? | Engine Yard Ruby on Rails Blog
http://www.engineyard.com/blog/2011/cloud-2/
Amazonクラウド、ついにJava対応PaaSの「Beanstalk」発表。Ruby on Rails対応も準備中 − Publickey
http://www.publickey1.jp/blog/11/amazonjavapaasbeanstalkruby_on_rails.html
クラウド型ストレージ「Amazon S3」は安いか? − @IT
1つはデータの冗長構成についてで、
Amazonは地理的に離れた最低2つのデータセンターにまたがって3重の冗長度でデータを保持している。
自前で同様のことをするには、RAID構成のストレージを2つのデータセンターに置き、それらの間でリアルタイムのレプリケーションを行う必要がある。
http://www.atmarkit.co.jp/news/200901/09/s3.html
このぐらいの性能でレプリケーション、バックアップ、リストア、ログ管理等等を
全く気にしなくていいとすれば、
月200でサーバ+DBAなんか雇えないわけで、十分ペイする気がします。
http://postgresql.g.hatena.ne.jp/umitanuki/20111202/1322810909
ttp://b.hatena.ne.jp/entry/twitter.com/2celeb/status/213562130300014592
https://status.heroku.com/incidents/375 S3はストレージであってデータベースでは無いので・・・ Amazon の Virginia DC がダウン: Quora や Heroku に影響が! « Agile Cat — in the cloud
http://agilecat.wordpress.com/2012/06/16/amazon-の-virginia-dc-がダウン:-quora-や-heroku-に影響が!/
Amazon に起こった大規模ダウンタイムを分析する
Amazon AWS の障害を総括すると、クラウドの勝利が見えてくる_1
http://agilecat.wordpress.com/2011/04/25/amazon-aws-の障害を総括すると、クラウドの勝利が見えて/
Amazon AWS の障害を総括すると、クラウドの勝利が見えてくる_2
http://agilecat.wordpress.com/2011/04/27/amazon-aws-の障害を総括すると、クラウドの勝利が見え%e3%81-2/ NASA は OpenStack を捨て、Amazon に乗り換えたのか? « Agile Cat — in the cloud
http://agilecat.wordpress.com/2012/06/14/nasa-は-openstack-を捨て、amazon-に乗り換えたのか/
Heroku: What were the reasons for Heroku choosing PostgreSQL over MySQL? - Quora
http://www.quora.com/Heroku/What-were-the-reasons-for-Heroku-choosing-PostgreSQL-over-MySQL
How many simultaneous connections will a shared database on Heroku allow? - Quora
You should be safe with up to around 20 connections.
http://www.quora.com/How-many-simultaneous-connections-will-a-shared-database-on-Heroku-allow 【徹底比較】2大Open Paas、Cloud FoundryとOpenShiftの強み/弱み − TechTargetジャパン クラウド&SaaS
http://techtarget.itmedia.co.jp/tt/news/1206/18/news02.html action.io
0 to Rails in 60 Seconds.
https://www.action.io/ Amazonクラウド先週のシステム障害、原因は電源トラブル。二重三重の防護策が次々と倒れる − Publickey
マルチアベイラビリティゾーンの設定がされていれば問題なかったが、
このアベイラビリティゾーンのみで稼働しているものについては、電源が復活するまで待たなくてはならなくなった。
http://www.publickey1.jp/blog/12/amazon_16.html Semaphore - Hosted Continuous Integration Service for Ruby and Rails
https://semaphoreapp.com/ 実践「Heroku」をセットアップしてサンプルアプリを動かそう | Think IT
http://thinkit.co.jp/story/2012/06/21/3594
youRoomとPivotalTrackerではじめる無駄のないコミュニケーション | Think IT
http://thinkit.co.jp/story/2012/06/14/3573?page=0,1
>>269
早すぎる。first commit から 1時間しか経ってないの
って、中身はまだ Thor 版 hello world でしかないのか
Amazon.co.jp: Heroku Cedar: Jurg van Vliet, Flavia Paganelli, Jasper Geurtsen, Matti Paksula, Att...
http://www.amazon.co.jp/gp/product/1449319637
Amazon.co.jp: Heroku: 洋書
http://www.amazon.co.jp/gp/product/5511737992
ActiveRecordのestablish_connectionに気をつけろ - 車輪の再発明
http://d.hatena.ne.jp/raugisu/20120428/1335598633
【訂正】Railsでconnection数を破綻させずにestablish_connectionで別DBを利用する - 車輪の再発明
http://d.hatena.ne.jp/raugisu/20120429/1335725405 ActiveRecord::Base.establish_connection(
"postgres://myuser:mypass@localhost/somedatabase"
)
http://api.rubyonrails.org/classes/ActiveRecord/Base.html#method-c-connected-3F $ git remote add heroku git@heroku.com:appname.git
https://devcenter.heroku.com/articles/git
クラウドな会社の介錯人が雑談: 新しい環境からHerokuの既存アプリを更新
http://blog.hashiva.net/2012/06/heroku.html ruby on rails - Why do people use Heroku when AWS is present? What's distinguishing about Heroku
Currently it's $0.05/hr for a dyno hour, compared to $0.025/hr for an AWS micro instance or $0.09/hr for an AWS small instance.
http://stackoverflow.com/questions/9802259/why-do-people-use-heroku-when-aws-is-present-whats-distinguishing-about-heroku When using Thin, this dyno will hammer away quite happily serving one request at a time.
Therefore, you could have four Unicorn processes running in one Heroku dyno.
http://neilmiddleton.com/getting-more-from-your-heroku-dynos/ さくらクラウド・さくらVPS・AmazonEC2・Rackspace CloudでRailsプロジェクトを作ってベンチマーク - ふじおかのブログ -Ruby牛タン親方は休憩中です-
http://d.hatena.ne.jp/xibbar/20120625#1340584854 Do a backup with more frequency. Although PG Backups Add-ons has a daily frequency, you can create a rake task using Heroku gem and schedule it to do in less time;
If you are doing a real app, consider migrating it to Heroku production database,
since it has a better infra, health checks and you can also access the database when needed. Consider also duplicating your database using a follower strategy, so you can just change to the other in case of any problem.
http://loudcoding.com/posts/how-to-recover-from-a-corrupted-table-on-heroku-shared-database/
https://github.com/heroku/heroku
https://github.com/heroku/heroku.rb
get_ps('app') # list current processes for 'app' app
post_ps('app', 'command') # run 'command' command in context of 'app' app
post_ps_restart('app') # restart all processes for 'app' app
post_ps_scale('app', 'type', 'quantity') # scale 'type' type processes to 'quantity' for 'app' app
post_ps_stop('app', 'ps' => 'web.1') # stop 'web.1' process for 'app' app
post_ps_stop('app', 'type' => 'web') # stop all 'web' processes for 'app' app
put_dynos('app', 'dynos') # set number of dynos for bamboo app 'app' to 'dynos'
put_workers('app', 'workers') # set number of workers for bamboo app 'app' to 'workers'
post_ps_restart('app', 'ps' => 'web.1') # restart 'web.1' process for 'app' app require 'heroku-api'
heroku = Heroku::API.new(:api_key => API_KEY)
post_ps_scale('app', 'type', 'quantity') # scale 'type' type processes to 'quantity' for 'app' app
https://github.com/heroku/heroku.rb
Heroku API
https://api-docs.heroku.com/ Dumper: Database Backup for Rails
http://dumper.io/ Scalr is an open-source cloud management software for public and private cloud infrastructure.
Scalr supports AWS, Rackspace, Cloudstack, Eucalyptus and Nimbula
http://scalr.net HerokuでPHPをmbstring付きで動かす&パフォーマンス比較 : candycane development blog
herokuはpagodaboxやphpfogよりもパフォーマンスが良かったようです。
http://blog.candycane.jp/archives/1375
heroku で PHP を使う - A Day in Serenity @ Kenji
http://d.hatena.ne.jp/Kenji_s/20120228/1330418302
linux - PHP Multibyte String on Heroku - Stack Overflow
http://stackoverflow.com/questions/8656247/php-multibyte-string-on-heroku
https://devcenter.heroku.com/articles/buildpacks
https://github.com/heroku/heroku-buildpack-hello
Example usage:
$ ls
hello.txt
$ heroku create --stack cedar --buildpack http://github.com/heroku/heroku-buildpack-hello.git
$ git push heroku master
...
-----> Heroku receiving push
-----> Fetching custom buildpack
-----> HelloFramework app detected
-----> Found a hello.txt
Database performance on Heroku is measured by connections, memory, and CPU Units.
Connections are the number of processes (dynos + workers + external connections)
which can connect to a database simultaneously.
https://devcenter.heroku.com/articles/database
プラン ronin fugu ika zilla baku mecha
接続コネクション数 16 20 50 100 200 400
http://thinkit.co.jp/story/2011/03/23/2060?page=0,1
http://blog.heroku.com/archives/2010/11/4/heroku_postgresql/
https://addons.heroku.com/heroku-postgresql
How many simultaneous connections will a shared database on Heroku allow? - Quora
You should be safe with up to around 20 connections.
http://www.quora.com/How-many-simultaneous-connections-will-a-shared-database-on-Heroku-allow $ heroku addons:add heroku-shared-postgresql
$ heroku pg:credentials HEROKU_SHARED_POSTGRESQL_COPPER
$ heroku pg:psql HEROKU_SHARED_POSTGRESQL_COPPER
$ heroku pg:info HEROKU_SHARED_POSTGRESQL_COPPER
=== HEROKU_SHARED_POSTGRESQL_COPPER
Status: ok
Tables: 5
Bytes: 81920
Connections: 6
Idle connections: 5
Idle connections in txn: 0
Active connections: 1
https://devcenter.heroku.com/articles/heroku-shared-postgresql Gondor — effortless production Django hosting
https://gondor.io/ Uploading Files to S3 in Rails with Paperclip | Heroku Dev Center
https://devcenter.heroku.com/articles/uploading-files-s3-rails-paperclip
Using AWS S3 to Store Static Assets and File Uploads | Heroku Dev Center
https://devcenter.heroku.com/articles/s3#credentials Creating your own Syslog drain
You can run a standalone EC2 instance with Ubuntu and rsyslog.
To begin, boot an instance and allow Heroku’s servers access to the syslog port:
https://devcenter.heroku.com/articles/logging
https://devcenter.heroku.com/articles/logentries
https://devcenter.heroku.com/tags/logging
さくらクラウド・さくらVPS・AmazonEC2・Rackspace CloudでRailsプロジェクトを作ってベンチマーク
http://d.hatena.ne.jp/xibbar/20120625#1340584854 fog - The Ruby cloud services library
http://fog.io heroku run rake assets:precompile tuningathon 4 に参加&優勝してきました - blog.tnmt.info
refineryていうRoR製CMSのブログ機能のチューニングがお題
http://blog.tnmt.info/2012/07/01/tuningathon4/ Rubber and Amazon EC2
Deploying to Amazon EC2 allows you to scale an application quickly.
http://railscasts.com/episodes/347-rubber-and-amazon-ec2
Kavis氏のブログによれば、氏の会社は2009年から5回AWSの障害に見舞われているが、サービスが落ちたことはない。
http://www.infoq.com/jp/news/2012/07/Avoiding-Downtime-in-Cloud
How we avoided downtime again as AWS takes an outage | Kavis Technology Consulting
http://www.kavistechnology.com/blog/?p=2056
https://status.heroku.com/
https://twitter.com/#!/herokustatus
AWS障害による影響を小さくするための設計(2011/4/21の障害を踏まえて) - よかろうもん!
http://d.hatena.ne.jp/interu/20110425/1303731515
youRoomにおいて発生した 2011/4/21 のAWSの障害について技術的な観点から - mat_akiの日記
http://d.hatena.ne.jp/mat_aki/20110422/1303440808
Amazon の Virginia DC がダウン: Quora や Heroku に影響が! « Agile Cat — in the cloud
http://agilecat.wordpress.com/2012/06/16/amazon-の-virginia-dc-がダウン:-quora-や-heroku-に影響が!/
Amazon に起こった大規模ダウンタイムを分析する
Amazon AWS の障害を総括すると、クラウドの勝利が見えてくる_1
http://agilecat.wordpress.com/2011/04/25/amazon-aws-の障害を総括すると、クラウドの勝利が見えて/
Amazon AWS の障害を総括すると、クラウドの勝利が見えてくる_2
http://agilecat.wordpress.com/2011/04/27/amazon-aws-の障害を総括すると、クラウドの勝利が見え%e3%81-2/ HerokuでPHPのコマンドラインを使うには : candycane development blog
http://blog.candycane.jp/archives/1525 $ git push heroku yourbranch:master Heroku’s early history: 4 home pages that made $212 million < Francis is
http://www.flourish.org/blog/?p=687 意外と知られていない無料VPS(centos,debian)を入手しよう!
http://hiroki.jp/2012/07/07/4625/ Heroku Invoice Security follow-up | Hacker News
http://news.ycombinator.com/item?id=4127016 Amazonクラウドを襲った嵐が、EC2、EBS、ELB、RDSの障害に発展した理由(前編) − Publickey
http://www.publickey1.jp/blog/12/amazonec2ebselbrds.html
Amazonクラウドを襲った嵐が、EC2、EBS、ELB、RDSの障害に発展した理由(後編) − Publickey
http://www.publickey1.jp/blog/12/amazonec2ebselbrds_1.html
Heroku | Cloud Application Platform
http://www.heroku.com/
AppFog - The Cloud Foundry Experts
http://www.appfog.com/
Sqale - 開発者のためのホスティングサービス【スケール】Ruby on Rails 対応。
http://sqale.jp/
PosgreSQL向けのバックアップ/リカバリマネージャー「Barman 1.0」が登場 | エンタープライズ | マイナビニュース
http://news.mynavi.jp/news/2012/07/11/011/
http://www.pgbarman.org/
インストーラーで簡単セットアップのWebベースPostgreSQL管理「TeamPostgreSQL」 - MOONGIFT|オープンソース・ソフトウェア紹介を軸としたITエンジニア、Webデザ...
http://www.moongift.jp/2012/06/20120604-3/
http://www.teampostgresql.com/ $ heroku addons:add heroku-shared-postgresql
$ heroku pg:info HEROKU_SHARED_POSTGRESQL_COPPER
=== HEROKU_SHARED_POSTGRESQL_COPPER
Status: ok
Tables: 5
Bytes: 81920
Connections: 6
Idle connections: 5
Idle connections in txn: 0
Active connections: 1
https://devcenter.heroku.com/articles/heroku-shared-postgresql
Semaphore - Hosted Continuous Integration Service for Ruby and Rails
https://semaphoreapp.com/ 精鋭がHeroku開発に挑む--「スタートアップ on Heroku」 - page2 - builder
Gmailの成功にも強い刺激を受けたとのこと。
Gmailによって、ユーザーはサーバの設定やスパムの排除などといった運用面の課題から解放され、メールを利用するという本質のみにフォーカスできるようになった。
http://builder.japan.zdnet.com/virtualization/35019245/2/ まるで魔法。GitリポジトリをHerokuに直接デプロイ「Heroku Installer」 - MOONGIFT|オープンソース・ソフトウェア紹介を軸としたITエンジニア、Webデザイナー向けブログ
http://www.moongift.jp/2012/07/20120713-2/ AWSの障害に起因したHerokuの障害について、Heorkuによるレポートが公開されたので要点を翻訳しました(全訳ではありません)
世界でも有数のインフラエンジニアであるAmazonの従業員がうまく稼働させられないものは、恐らく誰にもできないだろう
http://journal.sooey.com/130 Dev Starter Tier 10,000 row limit 0 MB cache
Basic Starter Tier 10 million row limit 0 MB cache
Crane Production Tier 0.4 GB cache
https://addons.heroku.com/heroku-postgresql Mecha Production Tier 68 GB cache
$6400.00 per month
https://addons.heroku.com/heroku-postgresql
Starter Tier
Free and low-cost plans designed for trial, development, testing, and basic usage.
99.5% Expected Uptime.
No dedicated data cache.
https://addons.heroku.com/heroku-postgresql
Production Tier
Designed for serious production usage, starting at $50 / month.
99.95% expected uptime.
Dedicated data cache varies with the plan size (0.4 - 68 gb). Up to 1 tb of total storage.
Database "Forks" make testing and development safe and effortless.
Database "Followers" provide one-click replication for horizontal scalability.
Automated health-checks ensure that your database stays available.
Auto snapshots (daily) with 1 month retention
https://addons.heroku.com/heroku-postgresql All Plans
Fully managed database service.
Continuous Protection - Write ahead logs are backed up every 60 seconds for maximum durability.
Data Clips - share the data in your database with simple, secure URLs.
Direct psql / libpq access
Postgres 9.1. Un-modified for guaranteed compatibility.
Postgres Extensions (hstore)
https://addons.heroku.com/heroku-postgresql 顧客は必要に迫られて行わなければならない作業、バックアップ/リカバリ、ストレージ管理、アップグレードなどに費やす時間を節約できる。そして顧客自身の付加価値を高めるためのアプリケーション開発に集中できる。
http://www.atmarkit.co.jp/news/201207/19/aws.html Postgres.app | the easiest way to run PostgreSQL on the Mac
http://postgresapp.com/
https://github.com/mattt/PostgresApp PosgreSQL向けのバックアップ/リカバリマネージャー「Barman 1.0」が登場 | エンタープライズ | マイナビニュース
http://news.mynavi.jp/news/2012/07/11/011/index.html システム・エンジニアの基礎知識
http://www.sist.ac.jp/~suganuma/kougi/other_lecture/SE/SE.html heroku pg:credentials --reset --app <your-app>
heroku pg:credentials
Rotating Database Credentials | Heroku Dev Center
https://devcenter.heroku.com/articles/rotating-database-credentials Upload
Cloudinary::Uploader.upload("my_picture.png")
Embedding and transforming images
cl_image_tag("sample.jpg", :width => 100, :height => 150, :crop => :fill)
https://devcenter.heroku.com/articles/cloudinary $ heroku labs:enable default-heroku-postgresql-dev
$ heroku labs:disable default-heroku-postgresql-dev
https://devcenter.heroku.com/articles/labs-default-heroku-postgresql-dev
Heroku does not support session affinity.
Requests are routed to your application nodes (dynos) using round-robin.
https://devcenter.heroku.com/articles/intro-for-java-developers
dynoを増やすとリクエストはラウンドロビンで各dynoに割り振られます。
セッションは考慮されないのでセッション変数的なものを使用する場合はMemcacheが必須になります。
http://blog.flect.co.jp/labo/2012/07/heroku-578d.html >>314 >>315
Limits
Crane databases can have up to 20 simultaneous connections.
Kappa databases can have up to 40 simultaneous connections.
https://devcenter.heroku.com/articles/heroku-postgres-documentation#limits
Crane & Kappa connection limits
https://devcenter.heroku.com/changelog-items/99
Heroku Postgres Dev Plan | Heroku Dev Center
Dev plan databases are limited to 20 connections and 10,000 total rows.
https://devcenter.heroku.com/articles/heroku-postgres-dev-plan#limits Heroku
Load-balancing is automatic.
When you scale your application up and down,
the individual nodes (dynos) automatically register and de-register with the routing infrastructure.
Heroku does not support session affinity.
Requests are routed to your application nodes (dynos) using round-robin.
https://devcenter.heroku.com/articles/intro-for-java-developers
ubuntu
debian
linux
windows
PaaS「ニフティクラウド C4SA」正式版--Ruby on RailsやMySQLも提供 - CNET Japan
http://japan.cnet.com/news/service/35019850/
Sqale - 開発者のためのホスティングサービス【スケール】Ruby on Rails 対応。
http://sqale.jp/
Connections to one-off dynos will be closed after one hour of inactivity (in both input and output).
https://devcenter.heroku.com/articles/oneoff-admin-ps All That Cloud: Amazon, Google App Engine, Windows Azure, Heroku, Jelastic - Java Code Geeks
http://www.javacodegeeks.com/2012/07/all-that-cloud-amazon-google-app-engine.html >>314 >>315
Limits
Crane databases can have up to 20 simultaneous connections.
Kappa databases can have up to 40 simultaneous connections.
https://devcenter.heroku.com/articles/heroku-postgres-documentation#limits heroku pg:psql でタイムアウトが発生する...
なぜだろう? One-Off process
Running heroku run XXX invokes a one-off dyno,
which Heroku now accounts for based on wall clock execution time.
For example, an interaction via heroku run console in which you open the run the command at 10:00,
do a few queries for 6 minutes, and then close the session at 10:06, would accrue 0.1 dyno-hour.
http://devcenter-jon.herokuapp.com/articles/billing-changes
Revert: Crane/Kappa Connection Limits
Change effective on 27 July 2012
We’ve reverted the crane/kappa connection limit change from 2 days ago.
Any new crane/kappas will not have a limit and
we’ll be going through and removing any set limits on those types of databases.
https://devcenter.heroku.com/changelog-items/100
One-off dynos disconnect when idle
Change effective on 12 June 2012
When the terminal attached to a heroku run dyno has had no input or output for one hour,
the dyno will be disconnected and terminated via SIGHUP. This avoids unexpected charges when leaving console sessions (such as django-admin.py shell or rails console) sitting idle.
https://devcenter.heroku.com/changelog-items/59
heroku addons:add shared-database
Heroku vs. Amazon Web Services, a Cloud Comparison | Cloud Zone
http://cloud.dzone.com/articles/comparison-clouds-heroku-amazon
[Ruby][さくらクラウド][AWS][Rackspace]さくらクラウド・さくらVPS・AmazonEC2・Rackspace CloudでRailsプロジェクトを作ってベンチマーク
http://d.hatena.ne.jp/xibbar/20120625#1340584854 $ heroku config
ってやると
you don't have access to the app myapp
って出るんだが・・・。
なんでなの?
分からん。 Heroku Postgres Starter Tier | Heroku Dev Center
Limits
Dev plan databases are limited to 20 connections and 10,000 total rows.
Basic plan databases are limited to 20 connections and 10,000,000 total rows.
https://devcenter.heroku.com/articles/heroku-postgres-starter-tier#limits
AWS EC2の月額料金
http://d.hatena.ne.jp/shin/20110712/p1
スモールインスタンスリージョン オンデマンド 1年リザーブ 3年リザーブ
東京 5840円 4221円 3446円
US西海岸 5548円 3853円 3114円
US東海岸 4964円 3265円 2530円
http://cloud.sakura.ad.jp/specification.php
サーバプラン料金 月額料金 日割料金 CPU メモリ ディスク
プラン1 2,500円 126円 仮想1コア 2GB 20GB
プラン2 3,750円 189円 仮想1コア 3GB 20GB EC2はサーバーを停止するとデータが消える 2年以上も前の話です。。
EBS用いれば、サーバー停止 してもデータは消えない
EC2はIPアドレスが毎回変わってしまう
EIP(Elastic IP)を用いて固定アドレスを割り当て可能
クラウドは障害がおきると何もできない
物理DC/サーバーも障害は起こる。
クラウドの良さは、障害からの復帰に複数の手段があり、備えておける
http://www.slideshare.net/kentamagawa/aws-9170814
http://www.slideshare.net/kentamagawa/ss-8786548
http://www.slideshare.net/yuumi3/aws-on-rails PostgreSQLがセキュリティアップデート - XMLの問題に対処 | エンタープライズ | マイナビニュース
「9.1.5」「9.0.9」「8.4.13」
http://news.mynavi.jp/news/2012/08/20/054/ ioDriveとIONがインストールされた1Uサーバは100万IOPS(秒間I/O回数)以上、最大6GB/秒のスループット、0.06ミリ秒未満のレイテンシを実現
http://www.computerworld.jp/topics/561/ストレージ/204383/フュージョンアイオー、「ioDrive」搭載サーバを共有ストレージにするソフトウェア発表
ioDriveは10万IOPS、SSDも3.6万IOPSほどでした。
ハードディスクでは数百から千ぐらいのIOPS
http://internet.watch.impress.co.jp/docs/special/20120731_549042.html
http://server.sakura.ad.jp/dedicated/expressg2.html
IOPSは、ディスクが1秒当たりに処理できるI/Oアクセスの数である。
IOPSが高ければ高いほど、高性能なディスクと言える。
http://itpro.nikkeibp.co.jp/article/lecture/20070104/258117/ 【AWS発表】 2TBのSSDを持つ、ハイ I/O EC2 インスタンスの登場 - Amazon Web Services ブログ
SSDストレージは、インスタンスのローカル側に存在しています。
PVMの場合、120,000 ランダムリード IOPS (Input/Output Operations Per Second) 、
10,000〜85,000ランダムライトIOPSが期待できます(ともに4K ブロック)。
http://aws.typepad.com/aws_japan/2012/07/aws発表-new-high-io-ec2-instance-type-hi14xlarge-2-tb-of-ssd-backed-storage.html Fusion-io、10億IOPSの新技術「Auto Commit Memory」発表。ストレージなんてレベルじゃない、パーシステントなメモリだ − Publickey
http://www.publickey1.jp/blog/12/fusion-io10iopsauto_commit_memory.html
まさに怪物! Fusion-ioが容量10テラバイト/性能130万IOPSのフラッシュドライブ「ioDrive Octal」発表 − Publickey
http://www.publickey1.jp/blog/11/_fusion-io10130iopsiodrive_octal.html
性能の話では、実際にioDrive1台でHDD200台をストライピングしたくらいのIOPSをたたき出したベンチマーク結果
http://blog.sotm.jp/20110619/sfstudy-01 require 'heroku-api'
heroku = Heroku::API.new(:api_key => API_KEY)
post_ps_scale('app', 'type', 'quantity') # scale 'type' type processes to 'quantity' for 'app' app
https://github.com/heroku/heroku.rb
Heroku API
https://api-docs.heroku.com/ さくらのクラウドAPIドキュメント
サーバのリソースモニタ情報を取得
GET /server/:serverid/power
サーバの起動状態を取得
PUT /server/:serverid/power
サーバを起動
DELETE /server/:serverid/power
サーバを停止
PUT /server/:serverid/reset
http://developer.sakura.ad.jp/cloud/api/ mixi API Quick Start(サンプルアプリを自動作成) << mixi Developer Center (ミクシィ デベロッパーセンター)
http://developer.mixi.co.jp/about-platform/api_quick_start/overview/ https://postgres.heroku.com/pricing
Crane
400 MB Cache
$ 50 / mo
kappa
Kappa
800 MB Cache
$ 100 / mo
ronin
Ronin
1.7 GB Cache
$ 200 / mo Queries made from cached data are often 100-1000x faster than from the full data set.
Well engineered, high performance, web applications will have 99% or more of their queries be served from cache.
https://devcenter.heroku.com/articles/cache-size
https://addons.heroku.com/heroku-postgresql
As Heroku Boss Flees to Olive Farm, Where's the Platform Cloud Going? | Wired Enterprise | Wired.com
http://www.wired.com/wiredenterprise/2012/09/heroku/ >>477
2ちゃんねらーでHeroku使いこなせる奴が一人もいないので
記事のリンク貼ってごまかしているのです Heroku | Multiple Ruby Version Support on Heroku
In your Gemfile:
source 'http://rubygems.org'
ruby '1.9.3'
gem 'rails', '3.2.3'
http://blog.heroku.com/archives/2012/5/9/multiple_ruby_version_support_on_heroku/ リモートサーバのgit環境を構築 + git pushでdeploy出来るようにするまでのまとめ | clicktx::Tech::Memo
http://perl.no-tubo.net/2012/04/05/リモートサーバのgit環境を構築-git-pushでdeploy出来るように/
git pushでdeployな生活をつくる方法 - コードで気楽な日々を
http://d.hatena.ne.jp/hao_yayoi/20110817/1313516842
A Letter to Heroku - Please Tier the Dynos | Hacker News
http://news.ycombinator.com/item?id=4503294 ストレージサービスであるAmazon S3の標準ストレージは、
99.999999999%の堅牢性と、99.99%の可用性を提供できるように設計されており、
また、世界中に広がるネットワークを活用し、
2つの施設における同時データ喪失を防げるように設計されています。
http://cloud.watch.impress.co.jp/docs/column/keyman/20120913_559151.html
HerokuがPostgreSQLのDatabase-as-a-Serviceを開始。しかし料金表がおかしいぞ − Publickey
If a meteor were to wipe out the east coast, you won’t lose your data.
もしも宇宙からの隕石で米東海岸が壊滅しても、データが失われることはありません。
http://www.publickey1.jp/blog/11/herokupostgresqldatabase-as-a-service.html
JSONのネイティブサポートやNoSQLライクな拡張も
「PostgreSQL 9.2」リリース、大幅な性能アップを実現
具体的には、最大で毎秒35万件のリードクエリ(従来の4倍強)、
データウェアハウスクエリのIndex-onlyスキャン(同2〜20倍)、
最大で毎秒1万4000件のデータ書き込み(同5倍)に対応している。
http://www.atmarkit.co.jp/news/201209/11/postgresql.html
1.Ika: $800/month, 50 connections, 7.5 GB of RAM, 4 compute units
2.Baku: $3200/month, 128 connections, 34 GB of RAM, 13 compute units
3.Mecha: $6400/month, 256 connections, 68 GB of RAM, 26 compute units
http://www.postgresql.org/about/news/1259/
なぜTwitterは低遅延のままスケールできたのか 秒間120万つぶやきを処理、Twitterシステムの“今” − @IT
2008年時点でTwitter上で生まれるつぶやきの数は秒間30だったが、
2010年4月現在は約700にまで膨れ上がっている。
スポーツイベントやオスカーの発表時など、ピーク時には秒間2000に達するという。
http://www.atmarkit.co.jp/news/201004/19/twitter.html
レポート:Sapporo RubyKaigi 2012 スペシャルレポート|gihyo.jp … 技術評論社
http://gihyo.jp/news/report/01/sapporo-rubykaigi2012
PHPカンファレンス2012 スペシャルレポート:当日レポート[随時更新]|gihyo.jp … 技術評論社
http://gihyo.jp/news/report/01/phpcon2012/0001 Simultaneous connections
The herokuapp.com routing stack can be used for async or multi-threaded apps that wish to handle more than one connection simultaneously.
Ruby webservers such as Goliath, Thin (with a suitable web framework such as Async Sinatra), or your own custom EventMachine web process are some examples.
https://devcenter.heroku.com/articles/http-routing#the_herokuappcom_http_stack) レポート:Sapporo RubyKaigi 2012 スペシャルレポート|gihyo.jp … 技術評論社
http://gihyo.jp/news/report/01/sapporo-rubykaigi2012 FAQ: Installation | Django documentation | Django
https://docs.djangoproject.com/en/dev/faq/install/
PostgreSQL is recommended, because we’re PostgreSQL fans
待望のPostgreSQL 9.2は大幅性能アップするのか?(1/2) − @IT
http://www.atmarkit.co.jp/fdb/rensai/dbwatch2012/dbwatch201203_01.html
JSONのネイティブサポートやNoSQLライクな拡張も
「PostgreSQL 9.2」リリース、大幅な性能アップを実現
具体的には、最大で毎秒35万件のリードクエリ(従来の4倍強)、
データウェアハウスクエリのIndex-onlyスキャン(同2〜20倍)、
最大で毎秒1万4000件のデータ書き込み(同5倍)に対応している。
http://www.atmarkit.co.jp/news/201209/11/postgresql.html Amazon.co.jp: Professional Heroku Programming: An Architect's Guide: Chris Kemp,Brad Gyger: 洋書
http://www.amazon.co.jp/gp/product/1118508998 868 :名無しさん@お腹いっぱい。:2012/09/27(木) 21:43:00.60 0
プロセスが落ちてない
(プロセス監視
OSがリソース不足でない
(リソース監視
サーバ内の監視処理が落ちてない
(監視処理が実行されるのを死活監視
サーバが落ちてない
(Pingで監視
ネットワークが落ちてない
(SWの監視
監視サーバが落ちてない
(Ping
監視サーバのOSがリソース不足でない
(リソース監視
監視処理が落ちてない
(監視処理が実行されるのを監視
くらいをお互いのサーバでやって、外のPingでの死活監視サービスで2台監視
2台のサーバは別の場所設置
ユーザーの不具合報告先あればなおいい
くらいやればいいじゃない
そんな重要ならね さくらの専用サーバとOpenStackで作るプライベートクラウド - SourceForge.JP Magazine : オープンソースの話題満載
http://sourceforge.jp/magazine/12/09/18/1126211 ioDriveとIONがインストールされた1Uサーバは100万IOPS(秒間I/O回数)以上、最大6GB/秒のスループット、0.06ミリ秒未満のレイテンシを実現
http://www.computerworld.jp/topics/561/ストレージ/204383/フュージョンアイオー、「ioDrive」搭載サーバを共有ストレージにするソフトウェア発表
ioDriveは10万IOPS、SSDも3.6万IOPSほどでした。
ハードディスクでは数百から千ぐらいのIOPS
http://internet.watch.impress.co.jp/docs/special/20120731_549042.html
http://server.sakura.ad.jp/dedicated/expressg2.html 【AWS発表】 2TBのSSDを持つ、ハイ I/O EC2 インスタンスの登場 - Amazon Web Services ブログ
SSDストレージは、インスタンスのローカル側に存在しています。
PVMの場合、120,000 ランダムリード IOPS (Input/Output Operations Per Second) 、
10,000〜85,000ランダムライトIOPSが期待できます(ともに4K ブロック)。
http://aws.typepad.com/aws_japan/2012/07/aws発表-new-high-io-ec2-instance-type-hi14xlarge-2-tb-of-ssd-backed-storage.html
過去には、私達は、時間とコストの非常にかかるコードベースのパフォーマンスチューニングに何百日も投資してきましたが、
Amazon RDS プロビジョンド IOPSを使ったところ、
たった1日でそれらのパフォーマンスチューニングの結果を上回ることができました。
Amazonクラウド、オンプレミスを超えたデータベース性能の向上機能「Provisioned IOPS for Amazon RDS」開始。パラメータでストレージ性能を設定 − Publickey
http://www.publickey1.jp/blog/12/amazonprovisioned_iops_for_amazon_rds.html
Fusion-io、10億IOPSの新技術「Auto Commit Memory」発表。ストレージなんてレベルじゃない、パーシステントなメモリだ − Publickey
http://www.publickey1.jp/blog/12/fusion-io10iopsauto_commit_memory.html
まさに怪物! Fusion-ioが容量10テラバイト/性能130万IOPSのフラッシュドライブ「ioDrive Octal」発表 − Publickey
http://www.publickey1.jp/blog/11/_fusion-io10130iopsiodrive_octal.html
性能の話では、実際にioDrive1台でHDD200台をストライピングしたくらいのIOPSをたたき出したベンチマーク結果
http://blog.sotm.jp/20110619/sfstudy-01 PostgreSQLをMySQLへコンバートしてみた « サーバーワークス エンジニアブログ
http://blog.serverworks.co.jp/tech/2012/09/27/postgresqlをmysqlへコンバートしてみた/ >>505
Pete : Avoid Heroku idling with New Relic pings
http://coderwall.com/p/u0x3nw 上から下までRubyが活躍していると指摘したのは、フクオカRuby大賞の特別賞を受賞した「Cloud Foundry」の生みの親の1人
http://el.jibun.atmarkit.co.jp/rails/2012/03/ruby-3574.html
Rails Hub情報局: Cloud FoundryがRuby「で」作られたクラウドだった件
http://el.jibun.atmarkit.co.jp/rails/2011/06/cloud.html Herokuを使って1分でスタートできるFacebookアプリ at nkjmkzk.net
http://nkjmkzk.net/?p=2430 WEB+DB PRESS Vol.71|gihyo.jp … 技術評論社
Herokuは,世界で最も利用されているカスタムアプリケーションのためのプラットフォーム提供型クラウドサービス(PaaS:Platform as a Service)です。Amazon WebServicesに代表されるインフラ提供型クラウドサービス(IaaS:Infrastructure as a Service)は,
ハードウェアやOSを調達する手間を省いてくれました。
それに対してPaaSは,アプリケーションの実行に必要なすべての環境に加え,
データベースやミドルウェアについても調達の必要がなくなり,
開発者はアプリケーションの本質的な価値を創造することに集中できます。
http://gihyo.jp/magazine/wdpress/archive/2012/vol71 Heroku vs. Amazon Web Services, a Cloud Comparison | Cloud Zone
http://cloud.dzone.com/articles/comparison-clouds-heroku-amazon
[Ruby][さくらクラウド][AWS][Rackspace]さくらクラウド・さくらVPS・AmazonEC2・Rackspace CloudでRailsプロジェクトを作ってベンチマーク
http://d.hatena.ne.jp/xibbar/20120625#1340584854 どうもこんばんは
cloud9 から node.js のサンプルを作って heroku にデプロイしてみたんですが、
Application Error
An error occurred in the application and your page could not be served. Please try again in a few moments.
If you are the application owner, check your logs for details.
となってしまいました。
そこでlogsをチェックしたいのですが、cloud9のコンソールから
$ heroku logs
としても
Command 'heroku' was not recognized
となってしまいます。
この場合、どうやってログを見ればいいのでしょう。 AWSの障害に起因したHerokuの障害について、Heorkuによるレポートが公開されたので要点を翻訳しました(全訳ではありません)
世界でも有数のインフラエンジニアであるAmazonの従業員がうまく稼働させられないものは、恐らく誰にもできないだろう
http://journal.sooey.com/130
Kavis氏のブログによれば、氏の会社は2009年から5回AWSの障害に見舞われているが、サービスが落ちたことはない。
http://www.infoq.com/jp/news/2012/07/Avoiding-Downtime-in-Cloud
How we avoided downtime again as AWS takes an outage | Kavis Technology Consulting
http://www.kavistechnology.com/blog/?p=2056
https://status.heroku.com/
https://twitter.com/#!/herokustatus
AWS障害による影響を小さくするための設計(2011/4/21の障害を踏まえて) - よかろうもん!
http://d.hatena.ne.jp/interu/20110425/1303731515
youRoomにおいて発生した 2011/4/21 のAWSの障害について技術的な観点から - mat_akiの日記
http://d.hatena.ne.jp/mat_aki/20110422/1303440808
Amazon の Virginia DC がダウン: Quora や Heroku に影響が! « Agile Cat — in the cloud
http://agilecat.wordpress.com/2012/06/16/amazon-の-virginia-dc-がダウン:-quora-や-heroku-に影響が!/
Amazon に起こった大規模ダウンタイムを分析する
Amazon AWS の障害を総括すると、クラウドの勝利が見えてくる_1
http://agilecat.wordpress.com/2011/04/25/amazon-aws-の障害を総括すると、クラウドの勝利が見えて/
Amazon AWS の障害を総括すると、クラウドの勝利が見えてくる_2
http://agilecat.wordpress.com/2011/04/27/amazon-aws-の障害を総括すると、クラウドの勝利が見え%e3%81-2/ Amazonクラウド先週のシステム障害、原因は電源トラブル。二重三重の防護策が次々と倒れる − Publickey
一方で、障害は特定のアベイラビリティゾーン内だったため、マルチアベイラビリティゾーンの設定が有効だったとも報告で示しています。
http://www.publickey1.jp/blog/12/amazon_16.html
【AWS発表】 東京リージョンで2番目のアベイラビリティゾーンが使用可能に - Amazon Web Services ブログ
http://aws.typepad.com/aws_japan/2011/03/adding-a-second-availability-zone-in-tokyo.html HerokuのDynoが寝ないようにする #heroku - Qiita
http://qiita.com/items/2f88f6079af0b35ed5e3
One-Off process
Running heroku run XXX invokes a one-off dyno,
which Heroku now accounts for based on wall clock execution time.
For example, an interaction via heroku run console in which you open the run the command at 10:00,
do a few queries for 6 minutes, and then close the session at 10:06, would accrue 0.1 dyno-hour.
http://devcenter-jon.herokuapp.com/articles/billing-changes
In addition creating followers across availability zones in the US East region,
followers can be created in the US West region with the --region us-west-2 flag.
https://devcenter.heroku.com/articles/disaster-mitigation#crossregion-followers
AWS Elastic Beanstalk has added support for Ruby and Amazon Virtual Private Cloud (Amazon VPC).
http://aws.amazon.com/releasenotes/3475360443946864 Deploying a Rails Application to AWS Elastic Beanstalk - AWS Elastic Beanstalk
http://docs.amazonwebservices.com/elasticbeanstalk/latest/dg/create_deploy_Ruby_rails.html
Deploying AWS Elastic Beanstalk Applications in Ruby Using Eb and Git - AWS Elastic Beanstalk
http://docs.amazonwebservices.com/elasticbeanstalk/latest/dg/create_deploy_Ruby.html Strider: Brilliant Continuous Deployment
http://strider-cd.com/ Oracle Invests in Engine Yard and Our Customers Benefit - Engine Yard Blog | Engine Yard Blog
https://www.engineyard.com/blog/2012/oracle-invests-in-engine-yard/ スタートアップ企業で8年間Webの開発をしてみての反省点いろいろ - Masatomo Nakano Blog
6. サーバ周りの人材をしっかり確保しよう
http://b.hatena.ne.jp/entry/blog.madoro.org/mn/84 「独自技術は実は負債で利子がつく」
という考え方は目から鱗です このぐらいの性能でレプリケーション、バックアップ、リストア、ログ管理等等を
全く気にしなくていいとすれば、
月200でサーバ+DBAなんか雇えないわけで、十分ペイする気がします。
http://postgresql.g.hatena.ne.jp/umitanuki/20111202/1322810909
HerokuがPostgreSQLのDatabase-as-a-Serviceを開始。しかし料金表がおかしいぞ − Publickey
If a meteor were to wipe out the east coast, you won’t lose your data.
もしも宇宙からの隕石で米東海岸が壊滅しても、データが失われることはありません。
http://www.publickey1.jp/blog/11/herokupostgresqldatabase-as-a-service.html Rails app on Heroku for free
In 3 easy steps you can setup a rails app on Heroku
that can easily handle 200 requests per second and 100 concurrent connections, for free.
http://collectiveidea.com/blog/archives/2012/11/26/setup-a-high-volume-site-on-heroku-for-free/ クラウドを肯定する5つの理由、否定する5つの理由 | クラウド・コンピューティング | トピックス | Computerworld - エンタープライズITの総合ニュースサイト
http://www.computerworld.jp/topics/601/150670 Amazon.co.jp: Heroku: Neil Middleton, Richard Schneeman: 洋書
http://www.amazon.co.jp/gp/product/144934139X Postgres 9.2 – The Database You Helped Build
heroku addons:add heroku-postgresql:dev --version=9.2
https://postgres.heroku.com/blog/past/2012/12/6/postgres_92_now_available/ AWSの障害に起因したHerokuの障害について、Heorkuによるレポートが公開されたので要点を翻訳しました(全訳ではありません)
世界でも有数のインフラエンジニアであるAmazonの従業員がうまく稼働させられないものは、恐らく誰にもできないだろう
http://journal.sooey.com/130
Kavis氏のブログによれば、氏の会社は2009年から5回AWSの障害に見舞われているが、サービスが落ちたことはない。
http://www.infoq.com/jp/news/2012/07/Avoiding-Downtime-in-Cloud
How we avoided downtime again as AWS takes an outage | Kavis Technology Consulting
http://www.kavistechnology.com/blog/?p=2056
https://status.heroku.com/
https://twitter.com/#!/herokustatus
AWS障害による影響を小さくするための設計(2011/4/21の障害を踏まえて) - よかろうもん!
http://d.hatena.ne.jp/interu/20110425/1303731515
youRoomにおいて発生した 2011/4/21 のAWSの障害について技術的な観点から - mat_akiの日記
http://d.hatena.ne.jp/mat_aki/20110422/1303440808
Amazon の Virginia DC がダウン: Quora や Heroku に影響が! « Agile Cat — in the cloud
http://agilecat.wordpress.com/2012/06/16/amazon-の-virginia-dc-がダウン:-quora-や-heroku-に影響が!/
Amazon に起こった大規模ダウンタイムを分析する
Amazon AWS の障害を総括すると、クラウドの勝利が見えてくる_1
http://agilecat.wordpress.com/2011/04/25/amazon-aws-の障害を総括すると、クラウドの勝利が見えて/
Amazon AWS の障害を総括すると、クラウドの勝利が見えてくる_2
http://agilecat.wordpress.com/2011/04/27/amazon-aws-の障害を総括すると、クラウドの勝利が見え%e3%81-2/ Adept Scale βeta
Automated scaling of Heroku dynos
https://addons.heroku.com/adept-scale How to Migrate Your Heroku Ruby Application to OpenShift | OpenShift by Red Hat
https://openshift.redhat.com/community/blogs/heroku-ruby-app-migration MyrokuというHerokuっぽいものを実装してみた - As a Futurist...
http://blog.riywo.com/2013/01/07/040947 創価諸君よ!
田浦本部横須賀桜山支部の偉大なる男子部
高橋裕之氏が1月31日の宝くじ
及びグリーンジャンボ宝くじで1等・前後賞が当たるように
また女子部と結婚成就と障害者年金1級受給と健康とご長寿と貯金残高20億円と刑事権力から護り抜く
祈りを毎日30分しっかりと高橋裕之氏に題目を送って行こうではありませんか!横須賀総県創価学会員は喜んで祈るに祈っていこうではありませんか!
また女子部は何が起きても疑うことなく高橋裕之氏について行きなさい
いいね!
創価学会名誉会長
池田大作 EclipseのDBViewerからherokuのPostgres DBを見ようとしてるんだけど、
jdbc:postgresql://ec2-**-***-***-***.compute-1.amazonaws.com:5432/***************?user=*****************&password=********************************&ssl=true
(***は伏せ字ね)
接続に失敗しちゃうんだよね。
誰か成功した人いる? もちろんJDBCドライバはインストール済み。 https://devcenter.heroku.com/articles/connecting-to-relational-databases-on-heroku-with-java#using-the-in-plain-jdbc
を参考に
?ssl=true&sslfactory=org.postgresql.ssl.NonValidatingFactory
を付けてみてもダメだなぁ。
すまん。チラシの裏状態だな。でもこのトライ&エラーが誰かの役に立つことを願うよ。 EclipseのDBViewerじゃなくてNetBeansでアクセスしてみたらうまくいった。
もちろん
?ssl=true&sslfactory=org.postgresql.ssl.NonValidatingFactory
を付けて。
EclipseのDBViewerでダメだった理由は、多分
http://web.archiveorange.com/archive/v/y2uspfgBDffM8YypZDiJ
に書いてあることっぽい。
heroku postgresのDBデータにアクセスするなら、とりあえずNetBeansオススメ。 postgression : A PostgreSQL Database for Every Test Case
http://www.postgression.com/ Cloud9 IDE | Online IDE – Your code anywhere, anytime
https://c9.io/ Koi Deploy
https://koideploy.com/
Hudson CI
http://hudson-ci.org/
Travis CI - Hosted Continuous Integration for the Open Source Community
https://travis-ci.org/ Show HN: Build your own Heroku on your own servers | Hacker News
http://news.ycombinator.com/item?id=5213862
Cloud 66 | Code to Cloud in 5 minutes
https://www.cloud66.com/ Automate Amazon Web Services - Skeddly
http://www.skeddly.com/
Ruby On Rails and PHP Cloud Hosting PaaS | Managed Rails Development
http://www.engineyard.co.jp/ Blue Box - Custom Hosting Solutions for Critial Applications
https://bluebox.net/ Heroku's Ugly Secret: how the cloud-king turned its back on Rails and swindled its customers : programming
http://www.reddit.com/r/programming/comments/18h4jf/herokus_ugly_secret_how_the_cloudking_turned_its/ EC2インスタンスにインストールするために、Chefのレシピを使うことができます。
AWS OpsWorksのご利用には、追加の料金はかかりません。
アプリケーションで使っているAWSのリソース(EC2インスタンス、EBSボリュームなど)だけの支払いでOKです。
http://aws.typepad.com/aws_japan/2013/02/aws-opsworks-flexible-application-management-in-the-cloud.html
Engine Yard Cloud は Amazon Elastic Compute Cloud (EC2) 上で稼働しており、Engine Yard Cloud のデプロイ環境に対して、
追加で Amazon のサービスをご利用になる場合には、Amazon 料金の 20% 増しの料金でご利用いただけます。
http://www.engineyard.co.jp/products/cloud/pricing
HerokuからEngine Yardに移行させる時にはこれで自動化「Engine Yard Migrate」
http://www.moongift.jp/2011/03/20110326/ balancer
Unicorn-style proxy in front of multiple app servers. Currently only works with thin.
https://github.com/ddollar/balancer heroku と AWS の使い分け方とかありますか。
heroku は使ってる
aws は最近勢いがあって気になっている awsで問題ないならawsで良いよ。
herokuはawsの上に乗ってるんだから、
面倒くさくて抽象化したい時使えば良い。 写真・動画で見る #waza 2013レポート #herokujp | #TechMood
http://techmood.jp/2013/03/11/344 dommmel : 1600% faster app requests with Rails on Heroku
https://coderwall.com/p/5cafjw
1600% faster app requests with Rails on Heroku | Hacker News
https://news.ycombinator.com/item?id=5370465 Temporize Scheduler βeta
Simple and flexible job scheduling for your application
https://addons.heroku.com/temporize Heroku vs. Amazon Web Services | Smashingboxes, web and mobile application development in Durham NC
http://www.smashingboxes.com/heroku-vs-amazon-web-services/ Amazon.co.jp: 入門Chef Solo - Infrastructure as Code eBook: 伊藤直也: Kindleストア
http://www.amazon.co.jp/gp/product/B00BSPH158 PlanForCloud: cloud cost forecast: From PaaS to IaaS: How we migrated off Heroku to RightScale
http://blog.planforcloud.com/2013/03/from-paas-to-iaas-how-we-migrated-off.html Set up a Staging App on Heroku to use your Production Database
http://korytegman.com/blogs/3 こりゃ便利!Vagrant で自分の PC に「作って、壊して、元に戻せる」サーバを作る - Shin x blog
http://www.1x1.jp/blog/2013/03/vagrant.html 入門Chef-Soloを片手にRailsアプリを動作させるところまでやってみた - プログラミングノート
http://d.hatena.ne.jp/ntaku/20130324/1364132658 Heroku 2X Dynos: Resize your dynos with twice the resources (private beta) | Hacker News
https://news.ycombinator.com/item?id=5463985
PostgreSQL: 2013-04-04 Security Release FAQ
Who discovered the vulnerability?
Mitsumasa Kondo and Kyotaro Horiguchi of NTT Open Source Software Center
http://www.postgresql.org/support/security/faq/2013-04-04/ heroku の DB update の後、メインに使ってたDBの接続URLが変わってた。
アプリは接続文字列を変更したら問題なく起動するようになったんだけど
heroku config で出てくる
HEROKU_POSTGRESQL_RED_URL
の値も変えたいんだけど、その値変更できねーよ!みたいに言われて出来なくって
データベースのバックアップが出来ない。
同じように困って解決した人いませんか?
バックアップに使ってるコマンドは
heroku pgbackups:capture ,,,
です $ heroku pg:promote HEROKU_POSTGRESQL_RED_URL
Promoting HEROKU_POSTGRESQL_RED_URL to DATABASE_URL... done
https://devcenter.heroku.com/articles/heroku-postgresql Host a PHP application for free on Heroku - YouTube
http://www.youtube.com/watch?v=L2YlEIMrGxA Backlift: The back end service for front end developers
https://www.backlift.com/ Kavis氏のブログによれば、氏の会社は2009年から5回AWSの障害に見舞われているが、サービスが落ちたことはない。
http://www.infoq.com/jp/news/2012/07/Avoiding-Downtime-in-Cloud
How we avoided downtime again as AWS takes an outage | Kavis Technology Consulting
http://www.kavistechnology.com/blog/?p=2056
https://status.heroku.com/
https://twitter.com/#!/herokustatus
AWS障害による影響を小さくするための設計(2011/4/21の障害を踏まえて) - よかろうもん!
http://d.hatena.ne.jp/interu/20110425/1303731515
youRoomにおいて発生した 2011/4/21 のAWSの障害について技術的な観点から - mat_akiの日記
http://d.hatena.ne.jp/mat_aki/20110422/1303440808
Amazon の Virginia DC がダウン: Quora や Heroku に影響が! « Agile Cat — in the cloud
http://agilecat.wordpress.com/2012/06/16/amazon-の-virginia-dc-がダウン:-quora-や-heroku-に影響が!/
Amazon に起こった大規模ダウンタイムを分析する
Amazon AWS の障害を総括すると、クラウドの勝利が見えてくる_1
http://agilecat.wordpress.com/2011/04/25/amazon-aws-の障害を総括すると、クラウドの勝利が見えて/
Amazon AWS の障害を総括すると、クラウドの勝利が見えてくる_2
http://agilecat.wordpress.com/2011/04/27/amazon-aws-の障害を総括すると、クラウドの勝利が見え%e3%81-2/ 「オンプレミス・システムの終わり」の始まり〜AWSでのミッションクリティカルシステムの稼働 - 急がば回れ、選ぶなら近道
http://d.hatena.ne.jp/okachimachiorz/20130414/1365914031 2006年創設の若い会社ではありますが、RightScaleは爆発的に利用者数を伸ばしています。
2011年7月時点で270万台を超えるサーバがRightScaleを通じて立ち上げられ、この数は日々増え続けています。
http://www.atmarkit.co.jp/ait/articles/1107/07/news114.html Filepicker.io | Heroku Dev Center
https://devcenter.heroku.com/articles/filepicker
Filepicker.io excels any time you want to add uploading or cloud file integration into your application.
Worried about running into the Heroku 30-second-timeout with big files? No worries, we can handle files upward of 100GB.
Need to store them on S3? Done, no questions asked.
https://addons.heroku.com/filepicker Heroku | Introducing the Europe Region, Now Available in Public Beta
https://blog.heroku.com/archives/2013/4/24/europe-region Ask HN: Best alternative to Heroku? | Hacker News
https://news.ycombinator.com/item?id=5611503 Heroku Scheduler classified as "best-effort" service | Heroku Dev Center
https://devcenter.heroku.com/changelog-items/253 日本人がヘロクヘロクって言い続けるからとうとうそれが正式になっちゃったんだよ Announcing Lower Engine Yard Pricing: Starting at 5¢/hr! - Engine Yard Developer Blog | Engine Ya...
https://blog.engineyard.com/2013/announcing-lower-pricing Is Shelly Cloud faster than Heroku? | Hacker News
https://news.ycombinator.com/item?id=5661847 Kite - Create & share web apps in seconds - YouTube
http://www.youtube.com/watch?v=2rQ30uIZlCE ***.herokuapp.comの***って、無課金ユーザーでも無限に休眠させたまま取れるんですか? >>733
カード認証済み(無課金でもOK)なら100アプリ、未認証なら5アプリまでつくれる
https://devcenter.heroku.com/articles/limits#other
あと、自分は経験してないからよく分からんが、初期状態で放置するとarchiveされるらしい
https://devcenter.heroku.com/articles/app-archiving
ただ、もし使いもしない名前を大量に押さえる類ならやめたほうがいいと思われ
サポートからメールが来てBANされるらしい MacinCloud - Rent a Mac in the Cloud!
http://www.macincloud.com/ 2秒で設定! AWS Elastic Beanstalk によるオートスケールアウトなサーバー構築
http://dx.24-7.co.jp/beanstalk/ 無限に無料分だけで使えるアプリって作れないかなー。
SNSアプリとかを想定してるんだけど、DBのレコードを使い切ったら別ノードを追加していくの。
ノードを超えてどうやって書き込むのか不明だけどw Dozens
http://dozens.jp/
というDNSサービスでHerokuをルートドメインで運用してる人はいますか?
サブドメイン(www)つきであれば可能なんですが、何度やってもルートドメインではアクセスできません。
hoge.jp TYPE:A TTL:7200 COTENT:75.101.163.44
hoge.jp TYPE:A TTL:7200 COTENT:75.101.145.87
hoge.jp TYPE:A TTL:7200 COTENT:174.129.212.2
*.hoge.jp TYPE:CNAME TTL:7200 COTENT:hoge.herokuapp.com
これでHerokuのDomainsに
hoge.jp
*.hoge.jp
と追加しても、www.hoge.jpではアクセスできるんですが、hoge.jpだと
2013-12-15T09:16:27.735516+00:00
heroku[router]: at=error
code=H70
desc="Access to bamboo HTTP endpoint denied"
method=GET
path=/favicon.ico
host=hoge.jp
と出てくるんですが・・・・ The Limitations of DNS A-Records
Last Updated: 29 August 2013
https://devcenter.heroku.com/articles/apex-domains Manage a Cookbook. chef
http://berkshelf.com/ redis動かないとおもってたらサービスやめてたのかorz Docker is the Heroku Killer | DevOps | Brightball, Inc
By comparison, Digital Ocean can give me a 512mb virtual machine, 1 core, and a 20gb SSD for $5 / month.
Heroku's high-end PX Dynos provide 6GB of RAM, 8 cores for approximately $552 / month.
For $480 / month with Digital Ocean I can get
a VM with 16 cores and 48gb of RAM as well as 480gb of SSD storage.
http://www.brightball.com/devops/docker-is-the-heroku-killer
How To Use the DigitalOcean Docker Application | DigitalOcean
https://www.digitalocean.com/community/tutorials/how-to-use-the-digitalocean-docker-application Herokuからメールが来て、ベータ版のdynoのうち無料のものの説明がこうなっていた。
Active up to 12 hours a day. とあるけど、無料版だと12時間/日 までに制限されるようになるのかな?
Free - Run your personal projects and experiments with 1 web, 1 worker and `heroku run`/scheduler all for free.
Apps sleep after 1 hr with no traffic. Active up to 12 hours a day.
Deployed to your choice of subdomain on herokuapp?.com. 512 MB RAM. 今 heroku.com/pricing 見たら、Must sleep 6 hours in a 24 hour period って書いてある
無料だと1日18時間しか利用できないってことか? .
.
板違い(?)の上に、話をさえぎってしまいゴメンナサイ!(*_ _)人
でも、この板のユーザーさんにも有意義な告知かと思うのでカキコませてください。
★ 謝礼は十分いたします ★ アメブロなどのサイト制作ができる方!!
アメブロなどを使用してのサイト制作のできる方を早急に求めています!
私はリケジョやPC女子からはほど遠く、サイト作成にはまったく疎いのでとても不自由しています…(> <;)
そこで私に代わりサイトを作成してくださる方を求めてこの場をお借りしました。
■サイトの内容…
アダルト系、違法性、その他公序良俗に反するものではありませんのでご安心ください。
■サイト制作の仕様ベース…
アメーバブログで十分です。願わくばwordpressなどのブログ形式のサイトを希望します。
それに準ずるもので使い慣れたものがあれば別のものでも構いません。
■条件はありません…
技術さえお持ちでしたら、学歴・職歴等は一切問いません。
フリーター、ニート、高齢ニート、コミュニケーション障害をお持ちの方、引きこもりの方、中年失業者、長期無職等、歓迎!
■作業形態…
作業は在宅でやって頂くことになりますので、時間の指定は一切ありません。別のお仕事の傍らに…でもOKです。
■詳細をお知りになりたい方は…
下記メールアドレスまでご連絡ください。詳しく書いた返信文を差し上げます。
※真剣な告知です。冷やかしはご遠慮ください。
井 上
inoue1952w★gmail.com
迷惑メール対策のため@部分を★にしてあります。
実際に送信する際には★を@マークに変えてください。
.
. 最近ここ使ってる話を余り聞かないんだけど、実際どうなんだろう。 heroku でデプロイするgit のremote repositoryの名前と heroku のapp の名前って同じ?
$ heroku create appname
としたら
$ git push appname masterでデプロイするの? こんなことを実現するのにherokuが使えるのかまず確認させてくれ
ruby(discordrb)でローカル検証済みのrbアプリケーション
これをheroku上で動作させることで24時間稼働のdiscordのBOTアプリを作成する ありがとう、できるよね
herokuのアカウント作った、任意の名前でアプリケーションも作った
git push heroku master したら、フォルダのファイルがアップロードされてるようなメッセージ確認した
アップロードしているはずのrun.shを実行してもcommand not foundになる
本当にやりたいのは以下 あと何が足りないんだろう
run.sh
----
ruby rubyapp.rb >>770
AWSやGAEやAzureに移行したとかじゃね?
大手クラウドがどんどん値下げするし機能は増えるしで
Herokuにこだわる意味がだんだん薄れてきてる herokuでデータを保存したい時ってamazonのs3 を使うのがいいのですか? 確実にどんな人でも可能な在宅ワーク儲かる方法
念のためにのせておきます
グーグルで検索するといいかも『金持ちになりたい 鎌野介メソッド』
PZPNI heroku postgres add-onってクソ遅くない? herokuをこの前始めて使ったものです。
webからの操作に応じて内部のテキストファイルを書き換えるアプリを作ってたんですけど、
Git hubのauto deployが有効になってて一定時間立つとgitにupしてたデータに上書きされることがさっき判明してすべて変更が消えていました。
heroku releases にもauto deployの履歴は乗ってなかったのですがもう諦めるしかないのでしょうか >>783
autoでもpushしたreleaseは残る
勘違いしてそうだけど...
内部でファイル変更などの状態を保持する事はherokuではできない
push関係なく1日1回あるrestartの時点で内部で書き換えたファイルはpush時の状態に戻る リリースが残ってなかったと言ってる事は単純に日時再起動で消えてるだけでしょ
オートデプロイしてたつもりで実際はしてないパターンだろ 再起動の事をオートデプロイとか言ってそう
herokuの再起動は停めれんぞ 質問するだけでそのあと音沙汰なし
これだから流行らない heroku側の問題じゃないけど、add onもう少し安くならないかな
dbを課金プランにするだけで安いvps借りれちゃう
鯖の面倒見なくていいのは凄い利点だけど、無料プランのdbが貧弱すぎる herokuをダウンロードしたものの、
次がわかりゃん。
既にアプリは開発ずみなんだが。 新しいアプリを作成
このページまでいったけど。
そこから先がわかりゃんせ。 Herokuのリージョンがアメリカになっちゃったんだけど日本リージョンにできる? 和製herokuできたぞ
ttps://www.sakura.ad.jp/information/announcements/2021/08/12/1968207782/ 後発なんだったら、せめてCloud Foundry準拠にしてくださいな >>794
さくらのクラウドと同様にそのうちTerraformに対応すると思うけどそれじゃダメ?
AWSありきなCloudFormationの方がええの?
https://knowledge.sakura.ad.jp/7230/ ReplitでDiscord bot作ってGASで常時起動させてたのが
何故か昨日くらいから常駐してくれなくなったからHerokuに移行しようとして
CLI使ってデプロイして動作確認するところまではいったんだけど
Dyno設定しても常駐してくれない・・・なんで? そうかもな
Free Dynoだと30分でスリープするし 有料になったから
render.comに移行したわ 「Herokuの対応は遺憾」 Skeb障害、機会損失は1500万円相当 クラウド丸ごと乗り換え約18時間で解決 - ITmedia NEWS
https://www.itmedia.co.jp/news/articles/2212/26/news095.html SalesForceジャパンのheroku Enterprise営業は年末だというのに休みどころじゃない大炎上を抱えて子会社の尻拭いに奔走するハメになって可哀想すぎる 【火葬場】 ブースター接種でフル稼働 【葬儀株】
://rio2016.5ch.net/test/read.cgi/sousai/1651730253/l50