LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Blogs > Pyplate
User Name
Password

Notices

This blog is about the development of my various Linux based web sites, starting with raspberrywebserver.com and Pyplate Python SQlite CMS.
Uncategorized Entries with no category
Old

My Python CMS now supports SQLite

Posted 01-11-2014 at 11:33 PM by Pyplate
Updated 01-11-2014 at 11:35 PM by Pyplate
Tags cms, python, sqlite

I've taken a break from working on my Raspberry Pi site because I've been spending time developing the Python CMS that I wrote to power the site. Meta data about each post is now stored in an SQLite database. The content is still stored in files separate from the database.

I've also extended the backend to include a UI a little bit like Wordpress. It's now possible to upload themes and switch to them in the admin area. The admin area now has pages for managing the cache, adding...
LQ Newbie
Posted in Uncategorized
Views 379 Comments 0 Pyplate is offline
Old

Nginx and uWSGI on a Raspberry Pi

Posted 11-15-2013 at 12:00 PM by Pyplate

I've set up Nginx and uWSGI on a Raspberry Pi. Nginx only serves static files, so uWSGI is needed to handle CGI scripts. It's slightly more complex to set up than Apache, but works just as well.

I did a comparison of Nginx and Apache. Unsurprisingly, Nginx was faster at serving static files.

Once I've worked out how to manage expires headers I can move my cluster over to Nginx. At the moment I can serve html files with an expires header, but when I try it with...
LQ Newbie
Posted in Uncategorized
Views 590 Comments 0 Pyplate is offline
Old

Extending my Raspberry Pi server cluster

Posted 10-23-2013 at 12:36 PM by Pyplate

I've added another 4 nodes to my Raspberry Pi server cluster. I posted links to my site on Reddit and some other social networking sites. I'm hoping to get a large hit of traffic so that I can see how my server performs.

In the past my server has handled 2800 visits in one day. I'm hoping to break that record soon, and hopefully without my server slowing down too much.
LQ Newbie
Posted in Uncategorized
Views 411 Comments 0 Pyplate is offline
Old

Testing my Odroid in my server cluster

Posted 10-23-2013 at 07:10 AM by Pyplate

After adding my Odroid U2 to my cluster, I ran tests using siege on the front end of the cluster. There was an increase in performance, but it wasn't the increase I was hoping for. I logged into some of the Pi nodes using ssh and ran uptime to check the load. The Pi nodes weren't working particularly hard, and neither was the Odroid. I logged into the load balancer and checked the uptime and memory usage:
Code:
$ uptime
 13:30:04 up 1 day,  5:20,  1 user,  load average: 9.27, 3.52, 1.33
...
LQ Newbie
Posted in Uncategorized
Views 562 Comments 0 Pyplate is offline
Old

Testing Varnish Cache on an Odroid U2

Posted 10-22-2013 at 01:05 AM by Pyplate

I've fixed the issue with my Odroid freezing. The kernel update fixed that.

I also got Varnish to work. Most of the documentation I found for Varnish refers to an earlier version, but it seems that the latest version has changed a lot, in particular there have been a lot of changes to the Varnish Configuration Language. Fortunately the Varnish compiler gives excellent error messages which tell you how to fix the problems it encounters.

I often make changes to pages...
LQ Newbie
Posted in Uncategorized
Views 323 Comments 0 Pyplate is offline

  



All times are GMT -5. The time now is 07:25 PM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration