{"id":2255,"date":"2016-08-12T16:14:32","date_gmt":"2016-08-12T22:14:32","guid":{"rendered":"http:\/\/www.mooreds.com\/wordpress\/?p=2255"},"modified":"2021-11-21T12:42:15","modified_gmt":"2021-11-21T18:42:15","slug":"running-costs-for-self-hosted-sharetribe","status":"publish","type":"post","link":"https:\/\/www.mooreds.com\/wordpress\/archives\/2255","title":{"rendered":"Running costs for self hosted Sharetribe"},"content":{"rendered":"<p>I have one instance of Sharetribe&#8217;s open source platform self hosted, and I thought I&#8217;d share the costs around that.<\/p>\n<p>This is hosted on Heroku. Why? It&#8217;s not the cheapest option, but it is the easiest option to get up and running with regard to developer time. It also is <a href=\"https:\/\/www.sharetribe.com\/community\/t\/experience-running-on-heroku-with-multiple-dynos\/135\/2\">what sharetribe.com runs<\/a>, so there&#8217;s less possibility of future incompatibilities. But I understand if you want to do all your own devops stuff (scaling, upgrading the server, backing up the db, etc) to save some bucks.<\/p>\n<p>Anyway, on production, you&#8217;ll want to run a 2X dyno for the web dyno, and a 1X dyno for the css_compile and worker dynos. I run 1 2X dyno for the web, and a 1x dyno for the worker tasks. That means about $75\/month, plus maybe $5\/month for <code>heroku run bash<\/code> and css compiles. You can obviously scale up the web dynos as you need to.<\/p>\n<p>And here are the addons I&#8217;ve found useful:<\/p>\n<ul>\n<li>Cleardb for mysql, &#8216;drift&#8217; level (make sure to be careful about your total db connections&#8211;each passenger process uses 5 and &#8216;drift&#8217; only has 30. $49.99<\/li>\n<li>flying sphinx for searches, &#8216;wooden&#8217;, $12. We have few enough listings that I&#8217;m not worried about deltas yet. $12<\/li>\n<li>memcachier for caching. Been able to stay at the developer level for now, which is free.<\/li>\n<li>new relic for monitoring and performance reporting. Been able to stay at the &#8216;wayne&#8217; level for now, which is free.<\/li>\n<li>papertrail for logfile review and alerting. Very valuable! Haven&#8217;t needed more than 2 days of logs, so am at the &#8216;choklad&#8217; level, free.<\/li>\n<li>heroku scheduler, which is essentially cron. Free.<\/li>\n<li>sendgrid for emails, which lets us send 12k emails for free.<\/li>\n<li>SSL addon, which lets us serve up the app under SSL with a custom domain name. $20<\/li>\n<\/ul>\n<p>So, add these all up and you are looking at a running cost of $75+$5+$50+$12+$20 == $162 for a base level heroku install of Sharetribe (plus the SSL certificate, which is another $20, but is a yearly expense). It&#8217;s worth remembering that these will increase as you have more traffic and success.<\/p>\n<p>Note, this is for production only. You probably want a staging server. I&#8217;ve been able to get by with free dynos for staging, though if you want to support\/test full text searches or have a DB with more than 5MB of data in it, you&#8217;ll need to pay *something* for staging.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have one instance of Sharetribe&#8217;s open source platform self hosted, and I thought I&#8217;d share the costs around that. This is hosted on Heroku. Why? It&#8217;s not the cheapest [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[78],"tags":[],"class_list":["post-2255","post","type-post","status-publish","format-standard","hentry","category-sharetribe"],"_links":{"self":[{"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/posts\/2255","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/comments?post=2255"}],"version-history":[{"count":4,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/posts\/2255\/revisions"}],"predecessor-version":[{"id":2310,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/posts\/2255\/revisions\/2310"}],"wp:attachment":[{"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/media?parent=2255"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/categories?post=2255"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/tags?post=2255"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}