artscilab / admin

Admin Items for ArtSciLab
0 stars 0 forks source link

Migrate to faster web server #72

Open magicspacekiwi opened 7 years ago

magicspacekiwi commented 7 years ago

This issue is for discussion involving finding suitable new hosting for the ArtSciLab servers which host the lab's website, the ARTECA staging environment, Creative Disturbance, and some other projects.

I will be evaluating some potential options over the coming weeks.

Currently, I'm only evaluating options that meet the following criteria (if you have input regarding this list, please leave a reply)

≥ 2GB Memory ≥ 40GB Disk Space VPS or Dedicated Server

//cc @cassininazir @duncangallagher

cassininazir commented 7 years ago

Perhaps another way of looking at this is removing things that are taking up processing power unnecessarily. @colin-c maybe we can take a look together this week.

rmalina commented 7 years ago

cassini do we know if there is the same problem on arteca

solve it first on arteca and move the podcasts in question to arteca first

and then later we can address the cd issu

we need to focus on getting podcasts up regularly on arteca

roger

Roger F Malina is in Dallas +15108532007 malina.diatrope.com

On Mon, Feb 20, 2017 at 7:07 PM, Colin Campbell notifications@github.com wrote:

This issue is for discussion involving finding suitable new hosting for the ArtSciLab servers which host the lab's website, the ARTECA staging environment, Creative Disturbance, and some other projects.

I will be evaluating some potential options over the coming weeks.

Currently, I'm only evaluating options that meet following criteria (if you have input on any changes to be made here, please let me know)

≥ 2GB Memory ≥ 40GB Disk Space VPS or Dedicated Server

//cc @cassininazir https://github.com/cassininazir @duncangallagher https://github.com/duncangallagher

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/artscilab/admin/issues/72, or mute the thread https://github.com/notifications/unsubscribe-auth/AFjpSXMiURzhQhr7_fZQOgCGLJwEIiHHks5rejjWgaJpZM4MGw_U .

magicspacekiwi commented 7 years ago

@rmalina The production ARTECA site (arteca.mit.edu) doesn't suffer from the performance issues we have on the staging site (arteca.atec.io), which is what this issue is talking about.

I just tried it out through a Sydney-based VPN and podcasts worked fine on the MIT site.

magicspacekiwi commented 7 years ago

@cassininazir I noticed that Apache SpamAssassin was running on the machine, but we don't need to since we don't use it to receive email so I disabled it. This doesn't appear to have made a significant difference in performance, and I don't really see a lot of other junk processes.

I monitored server resource usage when loading CPanel, the homepage of Creative Disturbance, and the homepage of ARTECA. Any of these overloaded the CPU (100% usage).

Additionally, disk performance is highly variable but typically pretty abysmal (~25MB/s on average) in my tests.

Another area of concern is that the system is out of date, running a release of CentOS from May 2016 and PHP from April 2016. Unfortunately system software is managed by HostGator.


In conclusion, I believe this server isn't adequate for our needs.

magicspacekiwi commented 7 years ago

@cassininazir Here are the screenshots you requested.

Showing 100% CPU utilization any time PHP is doing work

cpu-usage

Note that the multiple mysqld processes are actually child processes - I was sorting by CPU utilization instead of using tree view

Showing poor disk performance (30MB/s)

disk-performance

In addition, it performs unbelievably slow when running the same test using /dev/random which makes me think the processor is very underpowered

magicspacekiwi commented 7 years ago

We've started to migrate ArtSciLab sites to a new DigitalOcean machine which is faster.

I'm curious to know if this solves the issue of Creative Disturbance access from other countries (https://github.com/creativedisturbance/podcasts/issues/655)