Showing posts with label misc. Show all posts
Showing posts with label misc. Show all posts

Tuesday, December 13, 2011

Redundancy .... 1+1, 1:1, N+1, N:1, N:N ???

1:1 & 1+1

1+1 redundancy typically offers the advantage of additional failover transparency in the event of component failure. The level of resilience is referred to as active/active or hot as backup components actively participate with the system during normal operation. Failover is generally transparent (disruption to system availability) as failover does not actually occur (just degradation to system resilience) as the backup components were already active within the system.
Examples of 1+1 redundancy:
  • Dual active power supplies in a server.
  • Mirrored hard drives within a server/PC system.

Both 1:1 and 1+1 schemes have one active device or line protected by a redundant device or line. The difference between the two schemes is whether or not reversion takes place after the fault is cleared. 1+1 means that every component has one dedicated backup. Each component can be replaced by the one and only other backup device. Minimum number of components is 1.

For example, device B is protecting device A in a 1:1 configuration. 
If device A fails, device B will become the active unit in the configuration. 
When the fault at A is cleared, device A once again becomes active after a predetermined time and B returns back to standby (idle) mode. Reversion takes place from B to A. 

For example; device B is protecting A in a 1+1 configuration. 
If device A fails, device B will become the active unit in the configuration. 
When the fault at A is cleared, device B remains as the active device indefinitely (unless a fault occurs at B). No reversion takes place. 

The key advantage of 1+1 in telecom systems, if that only one disruption of traffic occurs. In 1:1 configurations, two disruptions take place; one when the fault occurs and a second when the fault is cleared and reversion takes place from the standby unit.

N:1, N+1 & N+N

N+1 redundancy is a form of resilience that ensures system availability in the event of component failure. Components (N) have at least one independent backup component (+1). The level of resilience is referred to as active/passive or standby as backup components do not actively participate within the system during normal operation. The level of transparency (disruption to system availability) during failover is dependent on a specific solution, though degradation to system resilience will occur during failover. It is also possible to have N+1 redundancy with active-active components, in such cases the backup component will remain active in the operation even if all other components are fully functional, however the system will be able to perform in the event that one component is faulted and recover from a single component failure. An active-active approach is considered superior in terms of performance and resiliency.
Examples of N+1 redundancy:
  • Connecting devices (server etc) in dual switch SAN fabrics employ a discrete path to each switch. Only one path is active at any given time, resiliency is provided by the availability of an additional path if the active path becomes unavailable.
  • Data centre power generators that activate when the normal power source is unavailable.


1+1 and 1:1 means the same, as well as N+1 and N:1. In general it is describing how many failures we can tolerate. 
N+1 means we have 1 backup device per group, so we can tolerate one failure. Any component can replace any of the components, but only once. Minimum number of components is N.
N+N means N backup devices per N components, and we can tolerate N failures. Any can replace any, minimum number of components is N.

One important difference between N+1 and 1+1 is that in a 1+1 system the standby server has the ability to maintain the state, e.g. in a phone network the standby server would be able to keep ongoing calls as it constantly monitors the state of all activities in the active server. In an N+1 system there's only one standby for N active servers and the call state is lost in case of a switchover. 
The terms 'hot standby' and 'warm standby' describes the same concept.

Saturday, April 3, 2010

Change the Width of Your Blog - Make the Blog Wider

This can be quite important feature, if you care about it....Changing the width of your Blogger Blog will gain you some extra space (to place more gadgets, pics, ads...), or it will make your Post section wider (meaning: larger pictures, wider paragraphs), you can also add a third column, if you want.....


CURRENT SITUATION (What's out there?)

There's a thousands of templates out there...you have Blogger default templates + Dozens of other sites that provide a free Blogger Templates...
All right, you knew that....but here's another thing you should consider:
There are 2 kinds of templates (layouts) you can use:

► FLUID width or STRETCH templates - template that resizes to fit any computer monitor. It stretches corresponding to the monitor resolution.
Advantage is obvious, and a big disadvantage is DESIGN. It's quite restraining when it comes to this. Of course, it depends what you like. For a professional looking template, it's great....But for a personal one, it can be a bit dull.....

► FIXED WIDTH templates - they have a fixed width, regardless of monitor resolution....They are ideal for designing and customizing, but, the width part can sometimes be a real pain in the....:]
...Why? Because:
- people have different Monitor (screen) sizes,
- and they use different resolutions on them...
...the final result is: Blog appears different in each combination!

Read more about Monitor sizes and resolution, and how to change the resolution...

◄Imagine lying down in the grass with your nose pressed deep into the thatch. Your field of vision would not be very large, and all you would see are a few big blades of grass, some grains of dirt, and maybe an ant or two. This is a 14-inch 640 x 480 monitor. Now, get up on your hands and knees, and your field of vision will improve considerably: you'll see a lot more grass. This is a 15-inch 800 x 640 monitor. For a 1280 x 1024 perspective (on a 19-inch monitor), stand up and look at the ground. Some monitors can handle higher resolutions such as 1600 x 1200 or even 1920 x 1440—somewhat akin to a view from up in a tree...►

SHOULD I CHANGE THE WIDTH OF MY BLOG?
Well, it depends. If you already have a wide template, or you're using Stretch (fluid) layout, there's no need of doing this...

Resolution friendly
means that your Blog doesn't exceed the width of 750px. Why 750? Because statistics tells us that lots of people are still using a 800x600 px resolution. And if you make your Blog wider than 750, these group of people will have to scroll left-right on your page....which is quite irritating. And you can lose those visitors....

But, there's also a saying, and it goes like this:
Lie ► A Bigger Lie ► Statistics.

If you surf a bit, and pay attention to web pages width, you'll notice that lots of web sites (even popular ones), are way over the 750 px!
So, it's really up to you....

LET'S CHANGE THAT WIDTH ALREADY.....
The only problem here will be the identification of the CSS style in your template (Layout). This is the part in the code section that defines styling, including width of elements.
There's so many different templates around, and it's a different story for each one...

But don't worry....there's a pattern. A backbone. A Layout constitution. A certain way of organizing (naming) elements. It's basically the same thing, under the different name.....
For this example, we'll take a default Blogger template ► Minima. Let's do it.
1. First thing is identification. Go to: LAYOUT ► EDIT HTML, and find the parts that defines the width of the Main section, Post sections, Sidebar, Header Section and Footer.
For Minima, we have this situation:
#header-wrapper {
width:660px;
margin:0 auto 10px;
border:1px solid $bordercolor;
}
..................................

#outer-wrapper {
width: 660px;
margin:0 auto;
padding:10px;
text-align:$startSide;
font: $bodyfont;
}
..................................

#main-wrapper {
width: 410px;
float: $startSide;
..................................

#sidebar-wrapper {
width: 220px; float: $endSide;
..................................

#footer {
width:660px;
clear:both;
...in Minima (and lots of other templates) elements are categorized by these names:
► header-wrapper is Header
► outer-wrapper is our Main section, other elements are wrapped inside of it..
► main-wrapper represents Post Section
► sidebar-wrapper stands for Sidebar
► footer is Footer :]

...this means that our header-wrapper is 660px wide, outer-wrapper width (Post section + Sidebar+ margins) is also 660px, and footer 660 px.

2. Let's change the width:
#header-wrapper {
width:750px;
margin:0 auto 10px;
border:1px solid $bordercolor;
}
......................................................................
#outer-wrapper {
width: 750px;
margin:0 auto;
padding:10px;
text-align:$startSide;
font: $bodyfont;
}
.......................................................................

#main-wrapper {
width: 500px;
float: $startSide;
........................................................................

#sidebar-wrapper {
width: 220px;
float: $endSide;
........................................................................

#footer {
width:750px;
clear:both;
...I've decided to make my Post section (main-wrapper) wider. In order to do this, I have to increase my outer-wrapper. Now, here's the RULE:
◄ If you want to increase the width of your Posts section or Sidebar, you HAVE to increase your Main section width (outer-wrapper) for the same value! ►
◄ 500px + 220px + margins = 750px ►

In this example, I've increased my Post section (main-wrapper) for 90px, so I've changed 410px into 500px. I did the same for the Main section (outer-wrapper), changed 660px into 750px....I've left the Sidebar the same width, 220px.
I've also changed the width for my header-wrapper and footer....into 750px. Note that this is not necessary, but better do it...for the sake of symmetry in your Layout...

That's about it. Remember, when you're changing the width of your (custom) Blogger template, certain elements will be (can be) under different name....Do not let it confuse you! You know how the elements are organized inside of it....and in the end, its a 5 minutes job...some simple mathematics + patience.....




http://www.blogbulk.com/2009/01/change-width-of-your-blog-make-blog.html