covid-taskforce-cplp / hxl-standard-tools-stack

Unofficial IaC with Ansible and Docker Compose stack of selected tools related to HXL Standard.
The Unlicense
2 stars 0 forks source link

MVP of CKAN #8

Open fititnt opened 4 years ago

fititnt commented 4 years ago

Refs:


Edit: more refs

fititnt commented 4 years ago

The Find already existing or create new CKAN Docker images #9 was closed and for now we will continue with the CKAN quick test directly on the VM (without docker) #10 since in my opinion, if we eventually be intereste on host production data, doing with Ansible directly on the VM instead of Docker seems faster to implement in a cheap and easier way.

Also a very good reason to not store database files inside docker is that such thing must be done very, very well done, and get docker containers production ready actually can be expensive (at least compared to Etica.AI VPSs)

About eventual production server

Also, following the CKAN hosting guidelines the Etica.AI test server actually is not far from production specifications for "a large national portal with heavy traffic":


### For a large national portal with heavy traffic: 
- 2 * Servers with 8GB of RAM (One for Web and one for the Database/solr)
- 160GB hard drive on both. (You may want more storage on the Web server if you intend to do a lot of file storage)
- Quad core processors (faster better)

### For a city level portal with lower traffic levels:
- 2 * Servers with 2GB of RAM (Web and DB/solr)
- 80GB hard drive on both. (You may want more storage on the Web server if you intend to do a lot of file storage)
- Dual core processors

Here our actual test server, hxl.etica.dev : VPS Águia Pescadora Golf [4vCPU / 8GB RAM / 200GB] [4.99 EUR/month] #91/ issue /EticaAI/forum/issues/91. With 2 of these (9.98 EUR/month) actually would be possible to serve huge number of requests.

I'm aware that the ideal scenario would be have two servers (even smaller usage of RAM) but the cheapest ones we found on Etica.AI to serve for free actually where these contabo ones with minimum of 8 GB of RAM.

About put on the same stack of hxl-standard-tools-stack

The initial name of this issue was CKAN quick test to consider add or not to the stack. I'm not sure what the could do later, but anyway will keep some more tests. Maybe at least the ansible roles drafted on this repository could be reused later for an actual server that could go and stay on production for years.