-Поиск по дневнику

Поиск сообщений в rss_sql_tony_rogerson

 -Подписка по e-mail

 

 -Постоянные читатели

 -Статистика

Статистика LiveInternet.ru: показано количество хитов и посетителей
Создан: 23.03.2007
Записей:
Комментариев:
Написано: 2




Tony Rogerson is a freelance Database Specialist based in the UK; a leading expert on Microsoft SQL Server this is his blog fed from his day to day ramblings
tonyrogerson@torver.net
mobile: 0796 816 0362
LinkedIn Profile



Добавить любой RSS - источник (включая журнал LiveJournal) в свою ленту друзей вы можете на странице синдикации.

Исходная информация - http://sqlblogcasts.com/blogs/tonyrogerson/default.aspx.
Данный дневник сформирован из открытого RSS-источника по адресу http://feeds.feedburner.com/sqlblogcasts/SQLServerStuffFromTonyRogerson, и дополняется в соответствии с дополнением данного источника. Он может не соответствовать содержимому оригинальной страницы. Трансляция создана автоматически по запросу читателей этой RSS ленты.
По всем вопросам о работе данного сервиса обращаться со страницы контактной информации.

[Обновить трансляцию]

You do not need a separate SQL Server license for a Standby or Passive server - this Microsoft White Paper explains all

Пятница, 21 Октября 2011 г. 15:00 + в цитатник

Updated 29th may 2012 for sql server 2012 (below)

Microsoft have changed the licence model for multiple passive machines, you can now only have one secondary passive failover per primary - see http://download.microsoft.com/download/7/3/C/73CAD4E0-D0B5-4BE5-AB49-D5B886A5AE00/SQL_Server_2012_Licensing_Guide_Apr2012.pdf

Personally I don't agree with this move, like previous editions you should be able to have multiple passive failovers.

-------------

If you were in any doubt at all that you need to license Standby / Passive Failover servers then the White Paper “Do Not Pay Too Much for Your Database Licensing” will settle those doubts.

I’ve had debate before people thinking you can only have a single instance as a standby machine, that’s just wrong; it would mean you could have a scenario where you had a 2 node active/passive cluster with database mirroring and log shipping (a total of 4 SQL Server instances) – in that set up you only need to buy one physical license so long as the standby nodes have the same or less physical processors (cores are irrelevant).

So next time your supplier suggests you need a license for your standby box tell them you don’t and educate them by pointing them to the white paper.

For clarity I’ve copied the extract below from the White Paper.

Extract from “Do Not Pay Too Much for Your Database Licensing

Standby Server

Customers often implement standby server to make sure the application continues to function in case primary server fails. Standby server continuously receives updates from the primary server and will take over the role of primary server in case of failure in the primary server.

Following are comparisons of how each vendor supports standby server licensing.

SQL Server
Customers does not need to license standby (or passive) server provided that the number of processors in the standby server is equal or less than those in the active server.

Oracle DB
Oracle requires customer to fully license both active and standby servers even though the standby server is essentially idle most of the time.

IBM DB2
IBM licensing on standby server is quite complicated and is different for every editions of DB2. For Enterprise Edition, a minimum of 100 PVUs or 25 Authorized User is needed to license standby server.

The following graph compares prices based on a database application with two processors (dual-core) and 25 users with one standby server.

[chart snipped]

Note All prices are based on newest Intel Xeon Nehalem processor database pricing for purchases within the United States and are in United States dollars. Pricing is based on information available on vendor Web sites for Enterprise Edition.

Microsoft SQL Server Enterprise Edition
25 users (CALs) x $164 / CAL + $8,592 / Server = $12,692 (no need to license standby server)

Oracle Enterprise Edition (base license without options)
Named User Plus minimum (25 Named Users Plus per Core) = 25 x 2 = 50 Named Users Plus x $950 / Named Users Plus x 2 servers = $95,000

IBM DB2 Enterprise Edition (base license without feature pack)
Need to purchase 125 Authorized User (400 PVUs/100 PVUs = 4 X 25 = 100 Authorized User + 25 Authorized Users for standby server) = 125 Authorized Users x $1,040 / Authorized Users = $130,000

https://sqlblogcasts.com:443/blogs/tonyrogerson/archive/2011/10/21/you-do-not-need-a-separate-sql-server-licence-for-a-standby-or-passive-server-this-microsoft-white-paper-explains-all.aspx


Cost justification for buying a 32GB superfast Alienware M18x with a price tag of around lb5K ($10K)

Пятница, 21 Октября 2011 г. 13:14 + в цитатник

When considering buying a laptop that’s going to cost me around lb5,000 I really need to justify the purchase from a business perspective; my Lenovo W700 has served me very well for the last 2 years, it’s an extremely good machine and as solid as a rock (and as heavy), alas though it is limited to the 8GB.

As SQL Server 2012 approaches and with my interest in working in the Business Intelligence space over the next year or two it is clear I need a powerful machine that I can run a full infrastructure though virtualised.

My requirements

For High Availability / Disaster Recovery research and demonstration

Machine for a domain controller
Four machines in a shared disk cluster (SQL Server Clustering active – active etc.)
Five machines in a file share cluster (SQL Server Availability Groups)

For Business Intelligence research and demonstration

Not entirely sure how many machine I want to run here, but it would be to cover the entire BI stack in an enterprise setting, sharepoint, sql server etc.

For Big Data Research

I have a fondness for the NoSQL approach to scalability and dealing with large volumes so I need a number of machines to research VoltDB, Hadoop etc.

As you can see the requirements for a SQL Server consultant to service their clients well is considerable; will 8GB suffice, alas no, it will no longer do. I’m a very strong believer that in order to do your job well you must expense it, short cuts only cost you time, waiting 5 minutes instead of an hour for something to run not only saves me time but my clients time, I can do things quicker and more importantly I can demonstrate concepts.

My W700 with the 8GB of RAM and SSD’s cost me around lb3.5K two years ago, to be honest I’ve not got the full use I wanted out of it but the machine has had the power when I’ve needed it, it’s served me and my clients well.

Alienware now do a model (the M18x) with 32GB of RAM; yes 32GB in a laptop! Dual drives so I can whack a couple of really good SSD’s in there, a quad core with hyper threading i7 and a decent speed.

I can reduce the cost of the memory by getting it from Crucial, so instead of lb1.5K for 32GB it will be around lb900, I can also cost save on the SSD as well. The beauty about the M18x is that it is USB3.0, SATA 3 and also really importantly has eSATA, running VM’s will never be easier, I can have a removeable SSD with my VM’s on it and can plug it into my home machine or laptop – an ideal world!

The initial outlay of lb5K is peanuts compared to the benefits I’ll give my clients, I will be able to present real enterprise concepts, I’ll also be able to give training on those real enterprise concepts and with real, albeit virtualised machines.

https://sqlblogcasts.com:443/blogs/tonyrogerson/archive/2011/10/21/cost-justification-for-buying-a-32gb-superfast-alienware-m18x-with-a-price-tag-of-around-163-5k-10k.aspx


First annual SQLRelay annouced for 3rd - 6th October, visit one of over 13 regional UK based SQL user groups

Вторник, 16 Августа 2011 г. 13:45 + в цитатник
This October, the UK SQL Server community is inviting anyone with an interest in SQL Server to a series of free evening user group events being held around the country.

Supported by SQLServerFaq, the 3rd-6th October 2011 sees the first annual SQLRelay with many of the UK’s SQL Server user groups coming together to run 13 evening meetings across the country in 4 days.

Everyone’s Welcome

Whether you’re a developer or administrator, professional or amateur, we hope there’s an event near you where you will not only get to meet and knowledge-share with like-minded people but also get to see a well-known SQL Server community member present. Our aim as user group leaders is to make you feel part of the already popular UK SQL Server community where we believe even the most novice of people can teach an old hand a thing or two.

If you’re already a member of a local user group why not bring a friend or colleague along to one our SQLRelay meetings in October? Every user group taking part has been organised to have either a Microsoft SQL Server team member or a Microsoft Most Valuable Professional (MVP) as a speaker.

SQLRelay Agenda

The UK SQL Server user group week kicks off in Liverpool at SQLBits, the semi-annual SQL Server conference, from the 29th September to 1st October. If you’re already attending then make sure you visit Community Corner where you can meet the user group leaders as well as their members. The SQLRelay team will be wearing instantly identifiable outfits and be available to give you more information about their events and answer your questions. For more information on SQLBits please visit www.sqlbits.com.

Following SQLBits, between Monday 3rd and Wednesday 5th of October, the 13 regional user groups will be holding free evening meetings very similar to their normal sessions, the only difference being that we’ve made sure each meeting will have a well-known SQL Server community member presenting.

Monday 3rd October
Manchester, Surrey, Birmingham, Kent

Tuesday 4th
Leeds, Bristol, London, Hertfordshire

Wednesday 5th
Edinburgh, Southampton, Exeter, Cardiff

We also welcome a new user group that will start in October in the County of Essex, more details will follow.

On Thursday 6th October the SQLRelay week will finish with an event at Microsoft’s Cardinal Place venue in London, with an internationally recognised speaker speaking. This is your chance to meet the attendees, speakers and organisers from all of the regional events as well as our yet to be named guest speaker. However, you can be assured that they are a well-known in the international SQL Server community and as soon as we can confirm more about their appearance we will. In addition to our speakers there will also be a prize draw where there is a chance to win the cool prizes provided by our sponsors.

How to Register

Details of each events date, time, location and agenda can be found on the UK SQL Server community web site www.sqlserverfaq.com where you can also register to attend each event.

Finally, we hope having received this email you feel welcomed by the UK SQL Server community and that you’ll join in our excitement about having a week of SQL Server community events.

Regards

The UK SQL Server User Group Leaders

https://sqlblogcasts.com:443/blogs/tonyrogerson/archive/2011/08/16/first-annual-sqlrelay-annouced-for-3rd-6th-october-visit-one-of-over-13-regional-uk-based-sql-user-groups.aspx


Discovery - when your IO Subsystem out performs processor Cores - how parallelisation really is our friend

Суббота, 23 Июля 2011 г. 17:12 + в цитатник

CPU Saturation – an over performing IO subsystem

It’s not often that you see the IO subsystem able to out drive the cores in the box. To demonstrate this behaviour the TestGuid_HeapInsert table (see http://sqlblogcasts.com/blogs/tonyrogerson/archive/2011/07/19/use-guid-s-uniqueidentifier-for-keys-when-storing-data-on-ssd-s-part-2-initial-database-schema.aspx for set up scripts), a 50 million row table (a heap) 54GBytes in size will be used, processor affinity will be used to lock SQL Server to a specific number of available cores.

Note: the equipment for this test is described here: http://sqlblogcasts.com/blogs/tonyrogerson/archive/2011/07/22/use-guid-s-uniqueidentifier-for-keys-when-storing-data-on-ssd-s-part-3-initial-base-line-with-iometer-and-first-test-group.aspx. In summary, Windows 2008 R2 x64, SQL 2008 R2 x64, 16GB of RAM but SQL Server is limited to 1GB, processor is a AMD Phenom II X6 Six Core 1090T Black Edition.

Interestingly this behaviour will not show up when using the COUNT(*) function without any WHERE clause, performance is consistent regardless of the number of cores used, however, once you have a Compute Scalar in the plan then the core scalability issue described kicks in.

select COUNT(*) from TestGuid_HeapINSERT with ( index = 0 )

Average Disk Bytes/read 404,396
Average Disk Sec/read 0.001
Average Disk Reads/sec 2,806
Average Read Bytes/sec 1,134,827,393

The SQL below has been used; the index hint used to simplify the experiment and make sure a table scan is being performed:

select MAX( cast( expandrow as bigint ) ) from TestGuid_HeapINSERT with ( index = 0 )

Cores

Avg Disk Bytes/Read

Avg Disk Sec/Read

Avg Disk Reads/Sec

Avg Read Bytes/Sec

Logical Reads

Read-Ahead Reads

CPU Time (ms)

Elapsed (ms)

1

411,619

0.000

622

256,306,080

7,142,864

7,142,864

211,225

228,679

2

406,215

0.001

1,244

506,625,778

7,142,864

7,142,864

216,249

116,102

3

407,495

0.001

1,833

746,940,222

7,142,864

7,142,754

220,336

78,957

4

409,191

0.001

2,392

978,956,526

7,142,864

7,142,864

223,797

60,129

5

408,588

0.001

2,795

1,142,225,279

7,142,864

7,142,864

225,248

51,388

6

408,588

0.001

3,270

1,324,789,338

7,142,864

7,142,864

229,429

44,631


Reviewing the figures above Average Disk Bytes per read, Average Disk Sec/Read, Logical Reads, Read-ahead reads and CPU Time (ms) remain fairly constant, however Average Disk Reads/Sec and Average Read Bytes/Sec are stepped and Elapsed (ms) reduces dramatically with a second core then savings diminish as cores are added.

Cores

Avg Disk Reads/Sec

Avg Read Bytes/Sec

Elapsed (ms)

2

622

250,319,698

-112,577

3

589

240,314,444

-37,145

4

559

232,016,304

-18,828

5

403

163,268,753

-8,741

6

475

182,564,059

-6,757

It should be noted, this problem isn’t actually specific to the IO subsystem, and the problem occurs if you have enough of your table in the buffer pool too, essentially the core cannot get the data through quick enough.

Relating to the real world

The figures above show that given a query that has no parallelisation and therefore runs on a single core the duration will be 512% of the capability of the box should all cores be used and will use only 19% of the availability Read Bytes/sec maximum.

In past versions of SQL Server we have been used to turning parallelism off because it more often than not extended the duration of the query, which was fixed in SQL Server 2008 where the parallelism does now work well. However, legacy systems and code and a perpetual myth that needs breaking is that MAXDOP should be removed and just let SQL Server get on with it.

It is true that on a system with a number of concurrent connections that this problem will balance itself out, however, what about the sequential overnight batch jobs that so many of us have?

No direct advice here (yet), may be that will come when I finally do my conclusions around these SSD benchmarks, but you need to be aware that this problem is here and as IO subsystems perform better (which mine does) then these issues will need addressing.

https://sqlblogcasts.com:443/blogs/tonyrogerson/archive/2011/07/23/discovery-when-your-io-subsystem-out-performs-processor-cores-how-parallelisation-really-is-our-friend.aspx



Поиск сообщений в rss_sql_tony_rogerson
Страницы: 2 [1] Календарь