Upload
kevalsing-rajput
View
51
Download
0
Tags:
Embed Size (px)
DESCRIPTION
This presentation is about Microsoft AppFabirc that is used for data caching.
Citation preview
Microsoft AppFabric 1.1
Agenda
In-memory caching DB caching Page output caching 2010
◦ Windows Server AppFabric 1.0 Microsoft AppFabric 1.1 for windows server
Background of caching
AppFabric can be installed on the following operating systems:
Windows Server 2012 Windows Server 2008 R2 Windows Server 2008 Service Pack 2
AppFabric can be installed for development and testing on the following operating systems:
Windows 8 Windows 7 Windows Vista Service Pack 2
Supported Env:
Supported Architectures: 32-bit (x86) 64-bit (x64)
◦ Hardware requirements: Minimum Hard Disk Space: 2GB Computer with an Intel Pentium-compatible CPU that
is 1 GHz or faster for single processors; 900 MHz or faster for dual processors; or 700 MHz or faster for quad processors.
Hardware Requirements
All features of AppFabric require a .NET Framework:
Microsoft .NET Framework 4 and optionally requires Microsoft .NET Framework 3.5 Service Pack 1
Internet Information Services (IIS) 7 Internet Information Services (IIS) 7 Hotfix #980423
IIS Web Deployment tool Windows PowerShell 2.0 (final version) (this
is not required for users on Windows 7,Windows Server 2008 R2, or later)
must software
Physical Architecture
Cache Cluster
Cache Host Cache Cluster Cache Client Cache server Cache Configuration storage Cache Administration
Terminology
Logical Architecture
Named Caches Regions Cached Objects
Terminology
To target the correct version of the .NET Framework◦ Open your Visual Studio .NET project.◦ In Solution Explorer, right-click the project name
and then select Properties.◦ Select the Application tab of the Project
Properties dialog.◦ Verify that the target framework version is .NET
Framework 2.0 or higher.◦ In Visual Studio 2008, uncheck the Client-only
Framework subset checkbox. In Visual Studio 2010, select .NET Framework versions that do not specify "Client Profile".
Prepare Dev Env
Install AppFabric Client on dev machine. To add references to the AppFabric caching
assemblies◦ Open your Visual Studio .NET project.◦ In Solution Explorer, right-click the project name and
then select Add Reference.◦ Select the Browse tab of the Add Reference dialog.◦ Navigate to the .\Windows\System32\AppFabric directory.◦ On 64-bit systems, the AppFabric directory will not be
directly visible. To work around this problem, create a new folder with the name “SysNative” and copy AppFabric folder to this folder. This results in navigating to the C:\Windows\SysNative\AppFabric directory in this step.
Prepare Dev Env
Add a reference to the following two assemblies: ◦ Microsoft.ApplicationServer.Caching.Client.dll◦ Microsoft.ApplicationServer.Caching.Core.dll.
Prepare Dev Env
%temp% folder AppServerSetup(yyyy-MM-dd H-mm-ss).log http://msdn.microsoft.com/en-us/library/aa3
68542(VS.85).aspx Microsoft.ApplicationServer.Configuration
(yyyy-MM-dd H-mm-ss) <process code>.log http://msdn.microsoft.com/en-us/library/ms6
81381(v=VS.85).aspx.
Error % Logs
Session state caching Other data caching
Application In Our Case
Does not restart auto after reboot. Work around.
◦ Set the AppFabric Caching Service's Startup type to be Automatic
◦ Another option is to schedule a startup task to execute the Use-CacheCluster and Start-CacheHost commands.
Auto Restart
For development and testing environments, ◦ with licenses for Windows Vista (SP2 or later) and
Windows 7 at no additional cost. For production environments,
◦ with licenses for Windows Server 2008 (SP2 or later) and Windows Server 2008 R2 at no additional cost.
In production environments, ◦ only active directory domain joined machines. ◦ The high availability caching feature in Windows Server
AppFabric is available only on Windows Server 2008/R2 Enterprise Edition.
There are no client access licenses for Windows Server AppFabric.
Licensing
High Availability
Consistency in HA
Time
Cache host 1
Cache host 2
Cache host 3
HACache (high availability-enabled named cache)
T1 running running running available
T2 running running stopped available
T3 running stopped stopped not available
Cache Host Failure Assuming that SQL Server was configured to perform the cluster management role.
SQL Server Database. Shared network folder.
Cluster Management
Cluster configuration storage type
Cluster configuration
storage location
Cluster management
XML file shared network folder
lead hosts
SQL Server database
SQL Server SQL Server (default) or lead
hosts
Custom provider custom store custom store
Lead Host Management cluster-level setting
Lead Host cache host setting
Setting combination description
Effective cache host responsibilities
false false SQL Server or a custom provider performs the cluster management role. This is not a lead host.
Normal cache host operations only.
false true SQL Server performs the cluster management role. This is a lead host if you change the leadHostManagementsetting to true.
Normal cache host operations only.
true false Lead hosts perform the cluster management role, but this is not a lead host.
Normal cache host operations only.
true true Lead hosts perform the cluster management role. This is a lead host.
Normal cache host operations and works with other lead hosts to manage the cluster.
Cluster Mgmt
Lead Host Vs SQL Server
Lead Host
SQL Server
Install Critical Windows Updates Install the .NET Framework Install AppFabric Configure AppFabric All machines should be in same domain. Create a domain user for caching service. Share UNC location.
Check list
Error: The target principal name is incorrect. A call to SSPI failed. http://blogs.msdn.com/b/distributedservices/archive/2012/10/29/authenticationexception-in-appfabric-1-1-ca
ching-for-windows-server.aspx?CommentPosted=true#commentmessage Solution:
Troubleshooting
http://www.hanselman.com/blog/InstallingConfiguringAndUsingWindowsServerAppFabricAndTheVelocityMemoryCacheIn10Minutes.aspx
http://msdn.microsoft.com/en-us/library/ee790859.aspx http://msdn.microsoft.com/en-us/library/hh361709(v=azure.10).aspx http://msdn.microsoft.com/en-us/library/hh334311(v=azure.10).aspx Capacity planning -
http://msdn.microsoft.com/en-us/library/gg186017(v=azure.10).aspx Cache-cluster commands -
http://msdn.microsoft.com/en-us/library/ee790886(v=azure.10).aspx Granting access to host/cluster:
http://msdn.microsoft.com/en-us/library/ff921012(v=azure.10).aspx
References