# Self hosting for free (with caveats!) with Oracle Cloud

**URL:** https://meta.discourse.org/t/self-hosting-for-free-with-caveats-with-oracle-cloud/139184
**Category:** Self-hosting
**Tags:** hosting
**Created:** [January 20, 2020, 12:51pm UTC](https://meta.discourse.org/t/self-hosting-for-free-with-caveats-with-oracle-cloud/139184 "2020-01-20T12:51:55Z")
**Posts on this page:** 20
**Page:** 2

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [June 27, 2020, 12:17pm UTC](https://meta.discourse.org/t/self-hosting-for-free-with-caveats-with-oracle-cloud/139184/22 "2020-06-27T12:17:09Z")

</div>

You don’t need or want lamp.

With digital ocean (or any server) you’ll want to do some basic things like install fail2ban and enable automatic os upgrades. No, it is not managed.

---

<div class="post-metadata">

### Author: ![nory](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nory/32/173397_2.png) [@nory](https://meta.discourse.org/u/nory)
#### Post date: [June 28, 2020, 10:11am UTC](https://meta.discourse.org/t/self-hosting-for-free-with-caveats-with-oracle-cloud/139184/23 "2020-06-28T10:11:19Z")

</div>

Thank you!

In Home Region (Your home region contains your account information and identity resources. It is not changeable after your tenancy is provisioned. If you are unsure which region to select as your home region, contact your sales representative before you create your account: [https://www.oracle.com/cloud/data-regions.html](https://www.oracle.com/cloud/data-regions.html)) what should I choose?

Thanks

EDIT:  
I registered and I’m starting to install

---

<div class="post-metadata">

### Author: ![nory](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nory/32/173397_2.png) [@nory](https://meta.discourse.org/u/nory)
#### Post date: [June 28, 2020, 2:14pm UTC](https://meta.discourse.org/t/self-hosting-for-free-with-caveats-with-oracle-cloud/139184/24 "2020-06-28T14:14:10Z")

</div>

I have installed Discourse on Oracle Cloud!!!

Now, I would like import Mybb database ([Migrate a MyBB forum to Discourse](https://meta.discourse.org/t/importing-mybb-to-discourse/130789)), but apt doesn’t work ☹

```
[root@oecdiscourse discourse]# sudo apt update
sudo: apt: command not found
[root@oecdiscourse discourse]# apt-get update
bash: apt-get: command not found
[root@oecdiscourse discourse]# sudo apt-get update
sudo: apt-get: command not found
[root@oecdiscourse discourse]# cd
[root@oecdiscourse ~]# sudo apt-get update
sudo: apt-get: command not found

```

Is it installed on the server?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [June 28, 2020, 2:41pm UTC](https://meta.discourse.org/t/self-hosting-for-free-with-caveats-with-oracle-cloud/139184/25 "2020-06-28T14:41:35Z")

</div>

You probably installed their version of Linux rather than Ubuntu. You’ll need to use Ubuntu or rtfm to install stuff with their os.

---

<div class="post-metadata">

### Author: ![elijah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elijah/32/104055_2.png) [@elijah](https://meta.discourse.org/u/elijah)
#### Post date: [June 28, 2020, 8:50pm UTC](https://meta.discourse.org/t/self-hosting-for-free-with-caveats-with-oracle-cloud/139184/26 "2020-06-28T20:50:12Z")

</div>

> [@nory](#):
>
> `sudo: apt: command not found`

The Oracle Linux is more Redhat than Ubuntu. Try `yum` versions of those commands.

---

<div class="post-metadata">

### Author: ![jtbayly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jtbayly/32/119510_2.png) [@jtbayly](https://meta.discourse.org/u/jtbayly)
#### Post date: [July 1, 2020, 3:19pm UTC](https://meta.discourse.org/t/self-hosting-for-free-with-caveats-with-oracle-cloud/139184/27 "2020-07-01T15:19:04Z")

</div>

Does anybody know how this would perform in comparison to the smallest droplet at Digital Ocean? I can’t figure out how to actually compare them.

---

<div class="post-metadata">

### Author: ![elijah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elijah/32/104055_2.png) [@elijah](https://meta.discourse.org/u/elijah)
#### Post date: [July 3, 2020, 7:02pm UTC](https://meta.discourse.org/t/self-hosting-for-free-with-caveats-with-oracle-cloud/139184/28 "2020-07-03T19:02:39Z")

</div>

The current cheapest droplet appears to be $5/month for 1 shared vCPU, 1 GB ram, 25 GB SSD (no swap partition), 1000GB transfer. The free Oracle host is 1 OCPU (defined as “CPU capacity equivalent of one physical core of an Intel Xeon processor with hyper threading enabled”), 1 GB ram, 50 GB SSD (10 as swap), and I think 1000GB transfer.

I have not yet figured out how to see how much data transfer I’m using.

Hmmm. Elsewhere I see Oracle as offering 1/8th OCPU. [https://docs.cloud.oracle.com/en-us/iaas/Content/FreeTier/resourceref.htm](https://docs.cloud.oracle.com/en-us/iaas/Content/FreeTier/resourceref.htm) But you can have two of them, so you can split DB and front end if desired.

---

<div class="post-metadata">

### Author: ![jtbayly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jtbayly/32/119510_2.png) [@jtbayly](https://meta.discourse.org/u/jtbayly)
#### Post date: [July 3, 2020, 7:25pm UTC](https://meta.discourse.org/t/self-hosting-for-free-with-caveats-with-oracle-cloud/139184/29 "2020-07-03T19:25:25Z")

</div>

Is there a way to compare the cpu capability? Maybe a command that could be run on each? Seems like Oracle has a slight edge, but that’s ignoring the CPU power, which is a black box to me.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [July 3, 2020, 7:27pm UTC](https://meta.discourse.org/t/self-hosting-for-free-with-caveats-with-oracle-cloud/139184/30 "2020-07-03T19:27:56Z")

</div>

Easy way is to run a rebuild of standard Discourse in each and time how long it takes.

---

<div class="post-metadata">

### Author: ![elijah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elijah/32/104055_2.png) [@elijah](https://meta.discourse.org/u/elijah)
#### Post date: [July 3, 2020, 7:28pm UTC](https://meta.discourse.org/t/self-hosting-for-free-with-caveats-with-oracle-cloud/139184/31 "2020-07-03T19:28:04Z")

</div>

I get about 20 minutes rebuild time, maybe someone with a small droplet can offer a comparison. From `time sudo /var/discourse/launcher rebuild app` leaving out the upgrade Postgres rebuild:

Apr 17 2020: 22m16.598s  
Jun 2 2020: 18m28.863s  
Jun 28 2020: 20m27.314s

---

<div class="post-metadata">

### Author: ![jtbayly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jtbayly/32/119510_2.png) [@jtbayly](https://meta.discourse.org/u/jtbayly)
#### Post date: [July 3, 2020, 7:29pm UTC](https://meta.discourse.org/t/self-hosting-for-free-with-caveats-with-oracle-cloud/139184/32 "2020-07-03T19:29:43Z")

</div>

> [@elijah](#):
>
> time sudo /var/discourse/launcher rebuild app

I’ll run it on a D.O. small droplet. But how do I leave out a Postgres rebuild?

---

<div class="post-metadata">

### Author: ![elijah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elijah/32/104055_2.png) [@elijah](https://meta.discourse.org/u/elijah)
#### Post date: [July 3, 2020, 7:30pm UTC](https://meta.discourse.org/t/self-hosting-for-free-with-caveats-with-oracle-cloud/139184/33 "2020-07-03T19:30:58Z")

</div>

I meant I left out the one that had Postgres 10 to 12 update. That took longer, but was doing more.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [July 3, 2020, 7:40pm UTC](https://meta.discourse.org/t/self-hosting-for-free-with-caveats-with-oracle-cloud/139184/34 "2020-07-03T19:40:30Z")

</div>

There are plenty of variables about how old the Discourse image is and how much work it has to do to update itself – but a really good rebuild time is more like 5 minutes. And a decent rebuild time would be 10 minutes.

---

<div class="post-metadata">

### Author: ![jtbayly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jtbayly/32/119510_2.png) [@jtbayly](https://meta.discourse.org/u/jtbayly)
#### Post date: [July 3, 2020, 7:42pm UTC](https://meta.discourse.org/t/self-hosting-for-free-with-caveats-with-oracle-cloud/139184/35 "2020-07-03T19:42:42Z")

</div>

That makes sense. Mine just finished in 6.5 minutes. But I had updated it earlier today… I wonder, @elijah what the second rebuild would take on your site the same day (ie similar to mine).

---

<div class="post-metadata">

### Author: ![elijah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elijah/32/104055_2.png) [@elijah](https://meta.discourse.org/u/elijah)
#### Post date: [July 3, 2020, 7:47pm UTC](https://meta.discourse.org/t/self-hosting-for-free-with-caveats-with-oracle-cloud/139184/36 "2020-07-03T19:47:06Z")

</div>

I know how to pay money for faster service. But it is nice to see the comparison. Maybe I’ll split db to a separate host at some point and redo the test.

@jtbayly: I didn’t save exact times, but early on while fiddling with what plugins to use I did some back to back rebuilds. There was not much difference in time.

---

<div class="post-metadata">

### Author: ![jtbayly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jtbayly/32/119510_2.png) [@jtbayly](https://meta.discourse.org/u/jtbayly)
#### Post date: [July 3, 2020, 7:49pm UTC](https://meta.discourse.org/t/self-hosting-for-free-with-caveats-with-oracle-cloud/139184/37 "2020-07-03T19:49:08Z")

</div>

Hmmm… I guess @codinghorror or others could shed more light on that, but I doubt it would have much impact on the rebuild speed. It doesn’t seem to me like a lot of the rebuild is spent in the DB.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [July 3, 2020, 7:54pm UTC](https://meta.discourse.org/t/self-hosting-for-free-with-caveats-with-oracle-cloud/139184/38 "2020-07-03T19:54:32Z")

</div>

So a free Oracle server is ~4x slower than the cheapest DO droplet and ~7x than a High CPU DO droplet (rebuild takes 3 minutes)

---

<div class="post-metadata">

### Author: ![Hector](https://avatars.discourse-cdn.com/v4/letter/h/43a26b/32.png) [@Hector](https://meta.discourse.org/u/Hector)
#### Post date: [July 4, 2020, 8:23pm UTC](https://meta.discourse.org/t/self-hosting-for-free-with-caveats-with-oracle-cloud/139184/39 "2020-07-04T20:23:03Z")

</div>

Performance tip: block volumes performance is dependant on disk size (60 IOPS/GB and 480 KB/s/GB). If you’re using only one free vm you can allocate your 100GB of free storage to that vm to double the IO. It’ll speed rebuild times quite a bit.

> [@elijah](#):
>
> The free Oracle host is 1 OCPU (defined as “CPU capacity equivalent of one physical core of an Intel Xeon processor with hyper threading enabled”)

A part of the definition is missing: _Each OCPU corresponds to two hardware execution  
threads, known as vCPUs._ That is, an OCPU is equivalent to two vCPU in other clouds (like DigitalOcean). Although of course in the case of the free service you don’t even get a full OCPU…

And a heads up of the Oracle TOS in case you hadn’t read it:  
_1.3 You may not, and may not cause or permit others to: … (b) perform_  
_or disclose any benchmarking or availability testing of the Services;_

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [July 4, 2020, 8:34pm UTC](https://meta.discourse.org/t/self-hosting-for-free-with-caveats-with-oracle-cloud/139184/40 "2020-07-04T20:34:15Z")

</div>

> [@elijah](#):
>
> maybe someone with a small droplet can offer a comparison.

You can rent a server billed hourly at a hosting company with this kind of billing and do the tests yourself. It will take some time to install and build Discourse on the servers, but you’ll have all the specs you want and it will cost you a few cents to a few dollars.

---

<div class="post-metadata">

### Author: ![jtbayly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jtbayly/32/119510_2.png) [@jtbayly](https://meta.discourse.org/u/jtbayly)
#### Post date: [July 4, 2020, 9:35pm UTC](https://meta.discourse.org/t/self-hosting-for-free-with-caveats-with-oracle-cloud/139184/41 "2020-07-04T21:35:11Z")

</div>

> [@Hector](#):
>
> Oracle TOS in case you hadn’t read it:  
> _1.3 You may not, and may not cause or permit others to: … (b) perform_  
> _or disclose any benchmarking or availability testing of the Services;_

A TOS that prevents you from testing whether your website is staying online? Whether they are providing what you are paying them to provide. Whether your server is functioning. Whether people can buy your products. In fact, it prohibits having a website on your server at all, since that permits others to perform an availability test of the Service.

So idiotic. If people actually followed the “rules” that lawyers write for everybody, the world would come to a standstill.

[Previous page](https://meta.discourse.org/t/self-hosting-for-free-with-caveats-with-oracle-cloud/139184.md?page=1)

[Next page](https://meta.discourse.org/t/self-hosting-for-free-with-caveats-with-oracle-cloud/139184.md?page=3)
