test3

by S on January 14, 2015

test3

{ 0 comments }

test 2

by S on January 14, 2015

test

{ 0 comments }

Hello world!

by admin on November 14, 2008

Welcome to UBC Blogs. This is your first post. Edit or delete it, then start blogging!

{ 1 comment }

The top 20 design tips for MySQL Enterprise data architects

Scooped from Hacker News.

{ 0 comments }

Wired Jargon Watch: Edupunk

by S on October 17, 2008

Edupunk n. Avoiding mainstream teaching tools like Powerpoint and Blackboard, edupunks bring the rebellious attitude and DIY ethos of ’70s bands like the Clash to the classroom.

Link.

{ 0 comments }

MySQL Query Caching Part II

by S on October 16, 2008

For those wondering how to do query caching here is a quick run down.

1) Edit the MySQL conf at the following to /etc/my.cnf for a 26M query cache use:

query_cache_type = 1
query_cache_size = 26214400

2) Restart MySQL

/etc/init.d/mysqld restart

3) Login to MySQL and run the following:

mysql> SET GLOBAL query_cache_size = 26214400;

4) Check if it was loaded:

mysql> SHOW VARIABLES LIKE 'query_cache_size';
+------------------+----------+
| Variable_name    | Value    |
+------------------+----------+
| query_cache_size | 26214400 |
+------------------+----------+
1 row in set (0.00 sec)

5) Check the cache “hits”:

mysql> SHOW STATUS LIKE 'Qcache%';
+-------------------------+---------+
| Variable_name           | Value   |
+-------------------------+---------+
| Qcache_free_blocks      | 1079    |
| Qcache_free_memory      | 4635984 |
| Qcache_hits             | 210991  |
| Qcache_inserts          | 52877   |
| Qcache_lowmem_prunes    | 17821   |
| Qcache_not_cached       | 23497   |
| Qcache_queries_in_cache | 2273    |
| Qcache_total_blocks     | 6990    |
+-------------------------+---------+
8 rows in set (0.00 sec)

6) Compare that to the questions:

mysql> SHOW STATUS LIKE ‘Questions%’;
+—————+——–+
| Variable_name | Value |
+—————+——–+
| Questions | 354695 |
+—————+——–+
1 row in set (0.00 sec)

from this we can determine that at that point roughly 59% 210991/354695 of the database queries are “cached”.

{ 0 comments }

MySQL Query caching

by S on October 15, 2008

We implemented MySQL query caching yesturday and the results are quite impressive.

ab -n 100 -c 40 https://blogs.ubc.ca/blog/category/community/latest-posts/

Requests per second:  325.78 [#/sec] (mean)
Time per request:       122.782 [ms] (mean)
Time per request:       3.070 [ms] (mean, across all concurrent requests)

We now have PHP APC opcode caching, content caching with WP-Super-Cache, content compression with mod_deflate and the MySQL Query caching… still alot more tweaks that can be done but this is a good foundation.

{ 1 comment }

Openbook test

by S on October 8, 2008

[openbook booknumber=”978-0307387899″]

{ 0 comments }

How Digg Works

by S on October 2, 2008

For those interested in scaling Digg has a  blog on their architecture and technology. Check it out to see how one of the most popular sites on the web works.

{ 0 comments }

Content compression added

by S on September 16, 2008

Added content compression to Apache using mod_deflate

AddOutputFilterByType DEFLATE text/html text/plain text/xml text/javascript

no dramtic changes in speed but every bit counts.

{ 0 comments }