chez  ·   jad   ·  tsurc   ·  cat   ·  tarquin  ·  cryptoboy Weird People    
journal.terryfroy.com
PhotosWritings
 
admin

post to journal
edit journal entry

archives

june 2004
july 2004
august 2004
september 2004
october 2004
december 2004
  january 2005
february 2005
may 2005
june 2005
november 2005
  january 2006
february 2006
april 2006
may 2006
july 2006
august 2006
september 2006
october 2006
november 2006
  february 2007
april 2007
may 2007
june 2007
july 2007
august 2007
september 2007
october 2007
november 2007
december 2007
  january 2008
march 2008
april 2008
july 2008
november 2008
december 2008
  march 2009
july 2009
august 2009
september 2009
october 2009
november 2009
december 2009
  january 2010
march 2010
may 2010
august 2010
november 2010
  march 2013

contact me

e-mail [pgp key]
homepage
icq

daily news

bbc radio 1
bbc news worldwide

fun stuff

ntk
fuckedcompany.com
bofh archives
the onion

internet oracles

google [usenet]

pc entertainment

c64 radio
project ay
world of spectrum
mame [unix] [wip]
id software
unreal tournament

network stuff

iana
6bone
rfc editor
arin whois
apnic whois
ripe whois

essential software

fedora core
courier mta
pureftpd
user mode linux

seo fun

uk tv abroad
live uk tv
website design lincolnshire
sticky labels

 
Tuesday, October 6, 2009

TJS Online Ltd
(posted at 10:32AM BST)

I've tweaked this post slightly to remove the SEO link; as it has now served its' purpose of demonstrating that a page can easily be subverted from its' original meaning - a Google Bomb(tm) will always work if there are an extremely high number of links from other domains but a single well-targeted link can still get a URL to list on the first page of Google results if you do it right.

The original purpose of this post was to make the observation that all of their 'bog' entries are written by staffers using pseudonyms and not other Internet users; this paragraph will be removed when a genuine comment has been made - the act of 'shilling' to obtain customers is not one I personally agree with and is precisely the reason why I have never allowed others to comment on my own journal; so I cannot be accused of the practice myself.

Monday, October 5, 2009

Why standalone databases are a good thing...
(posted at 09:46PM BST)

It is a generally accepted practice in the hosting world to have websites and databases running on the same servers; back in the day, this was due to the unacceptable latencies of opening TCP connections from the webserver to the database server - the query typically only taking microseconds once the initial connection had been established.

A lot has changed since then.

Databases can now span many gigabytes in size as opposed to megabytes; some poorly designed tables (by those with no proper grounding in Computer Science or understanding of the concept of normalization) with inappropriate joins or lack of suitable indexing can cause a database server much pain.

You can take the easy way out and throw more CPU/RAM at the problem; unfortunately, this does not scale with the larger databases, as a database consisting of 3GB of diskspace will consistently eat 3GB of RAM every time you run a query that needs to 'touch' every single row in the table due to a poorly constructed query or non-existent or insufficient indexing.

Even with properly constructed databases, you still run into the problem of disk caching - the primary purpose of a webserver is to answer the request and stream the response back to the client as quickly as possible; latency due to database issues as described or poorly-constructed queries will kill the responsiveness of your site.

The correct answer is to run a separate database server with RAID 0 on the filesystem that stores the databases.

RAID 0 ?

Is he nuts !?!?!

Not quite... you see, RAID 0 offers the absolute highest disk performance you can get but with the tradeoff that you have no redundancy.

Although, if you introduce DRBD into the equation and replicate the database filesystem to another machine which is using RAID 5, you regain your redundancy there at the cost of introducing slight latency to your disk writes - which you would have experienced anyway if the database server was running RAID 5.

If the RAID 0 array fails, the secondary DRBD instance will transparently answer any read/write requests from the database server; while also acting as a source for the rebuild of the RAID 0 array.

The end results speak for themselves; disk throughput is more than trebled and without a webserver on the same machine screwing with the disk cache, the average SQL query is answered in less than one fifth of the time it usually takes on a shared server - the latency of the TCP connection is less than the time it takes for the browser to initiate a HTTP connection.

Of course, it doesn't matter how well-specified or well-configured your webserver/database server are if your code is unoptimized garbage and your database design has a graduate DBA crying into his soggy cornflakes.

The general rule is that optimization should be used to make fast code even faster... slow code should be re-factored into fast code and then optimized into faster code!

IMHO, trying to optimize slow code is an exercise in futility.

 
slashdot

Netflix Doc Accused of Using AI To Manipulate True Crime Story

Android Gets a New Software-Based AV1 Decoder

Firefox Nightly Expands To Linux On ARM64

Dutch Privacy Watchdog Recommends Government Organizations Stop Using Facebook

23andMe CEO Anne Wojcicki Considers Taking Company Private

'Women Who Code' Shuts Down Unexpectedly

A Chess Formula Is Taking Over the World

EPA Will Make Polluters Pay To Clean Up Two 'Forever Chemicals'

Linus Torvalds on 'Hilarious' AI Hype

Microsoft's VASA-1 Can Deepfake a Person With One Photo and One Audio Track

Indian IT Outsourcing Firms Cut 60,000 Jobs in First Layoffs in 20 Years

Porn Sites Face Strict EU Rules, Commission Says

Meta's Not Telling Where It Got Its AI Training Data

Microsoft Does Not Want You To Use iPerf3 To Measure Network Performance on Windows

Google To Employees: 'We Are a Workplace'

the register

Google squashes AI teams together in push for fresh models

SpaceX, Northrop Grumman reportedly working on US spy sat program

Sacramento airport goes no-fly after AT&T internet cable snipped

NASA solar sail to be Siriusly visible in orbit from Earth

Qt Ubuntu 24.04 betas show that there's room to innovate

AI energy draw from Chicago datacenters to rise ninefold

WhatsApp, Threads, more banished from Apple App Store in China

Unintended acceleration leads to recall of every Cybertruck produced so far

A quarter of 5-7 year olds now use smartphones, says regulator

Cybercriminals threaten to leak all 5 million records from stolen database of high-risk individuals

Germany cuffs alleged Russian spies over plot to bomb industrial and military targets

Wing Commander III changed how the copy hotkey works in Windows 95

Some smart meters won't be smart at all once 2/3G networks mothballed

Your trainee just took down our business and has no idea how or why

UK unions publish AI bill to protect workers from 'risks and harms' of tech

Huawei's latest flagship smartphone contains no world-shaking silicon surprises

Oracle scores big win with Fujitsu Japan for its Alloy partner cloud

Meta lets Llama 3 LLM out to graze, claims it can give Google and Anthropic a kicking

US Air Force says AI-controlled F-16 fighter jet has been dogfighting with humans

Ransomware feared as IT 'issues' force Octapharma Plasma to close 150+ centers

Crooks exploit OpenMetadata holes to mine crypto – and leave a sob story for victims

Stability AI decimates staff just weeks after CEO's exit

IBM accused of cheating its own executive assistants out of overtime pay

Google fires 28 staff after sit-in protest against Israeli cloud deal ends in arrests

Feds hit coding boot camp with big fine for allegedly conning students

Microsoft aims to triple datacenter capacity to fuel AI boom

House passes bill banning Uncle Sam from snooping on citizens via data brokers

October 2025 will be a support massacre for a bunch of Microsoft products

Fraudsters abused Apple Stores' third-party pickup policy to phish for profits

911 goes MIA across multiple US states, cause unclear

TSMC expects customers to pay more for chips fabbed overseas

NASA will send astronauts to patch up leaky ISS telescope

185K people's sensitive data in the pits after ransomware raid on Cherry Health

Microsoft claims it didn't mean to inject Copilot into Windows Server 2022 this week

Micron scores $6.1B CHIPS Act cash for New York and Idaho fabs

Google laying off staff again and moving some roles to 'hubs,' freeing up cash for AI investments

EU tells Meta it can't paywall privacy

Novelty flip phone strips out almost every feature possible to be as boring as possible

Prolific phishing-made-easy emporium LabHost knocked offline in cyber-cop op

Debian spices up APT package manager with a dash of color, squishes ancient bug

AI PCs are here but a killer application for biz users? Nope

Valkey publishes release candidate and attracts new backer

Cisco creates architecture to improve security and sell you new switches

Europe gives TikTok 24 hours to explain 'addictive and toxic' new app

Singapore infosec boss warns China/West tech split will be bad for interoperability

Mars helicopter sends final message, but will keep collecting data

Taiwanese film studio snaps up Chinese surveillance camera specialist Dahua

Software glitch saw Aussie casino give away millions in cash

HPE sues China's Inspur Group over server patents

Hugely expanded Section 702 surveillance powers set for US Senate vote

 

Linux

Apache

PHP