Capítulo II MARCO TEÓRICO
2.4. Marco Legal
2.4.3. Ley Orgánica de Régimen Tributario Interno
In this exercise, you will create and test FEO policies for Domain Sharding. In this exercise you will:
Create an FEO action for Domain Sharding.
Create an FEO policy for Domain Sharding and bind the policy to the FEO test virtual server. Create the necessary subdomains on the AD.training.lab domain controller virtual machine. Test the Domain Sharding policy using the FEO test site.
Step by step guidance
Estimated time to complete this exercise: 30 minutes. Step Action
1. While still logged on to the NetScaler user interface, navigate to Optimization > Front End
Optimization > Actions.
| 64 |
1/13/201
2. In the pane that appears, type feo_act_domain_sharding in the name field. Scroll down to Miscellaneous optimization and type mobilestream.training.lab in the Domain Name field. Then type mobilestream.domain1.training.lab in the Shard Names field and click the + symbol. Repeat this process for mobilestream.domain2.training.lab and
| 65 |
1/13/201
Now that an action has been created, a policy needs to be created to operate using the action that was just created.
Navigate to Optimization > Front End Optimization > Policies.
Click Add.
3. In the new page that appears, type feo_pol_domain_sharding in the Name field, select
feo_domain_sharding_test from the Action drop-down list box, type HTTP.REQ.IS_VALID in the
| 66 |
1/13/201
4. Now that we can see what we are working with on the page and we have created the action and the policy, the policy can be bound to a load-balancing virtual server to test the action.
Navigate to Traffic Management > Load Balancing > Virtual Servers.
Select lb_vsrv_mobilestream from the list and click Edit.
| 67 |
1/13/201
6. Select the feo_pol_html_css policy and click Unbind.
Click Yes in the Confirm box that appears.
| 68 |
1/13/201
8. A new pane appears, check the box to the left of the feo_pol_html_css policy and click Insert.
Click OK.
| 69 |
1/13/201
10. Click the save icon in the upper-right corner of the user interface to save the NetScaler configuration.
Click Yes to save the running configuration.
11. To correctly support domain sharding, we need to create extra subdomains at the DNS level. Open XenCenter, and select the AD.training.lab virtual machine and select the Console tab.
| 70 |
1/13/201
13. Expand the Forward Lookup Zones node and select training.lab.
| 71 |
1/13/201
15. In the dialog box that appears, type domain1 and then click OK.
Repeat this process for both domain2 and domain3.
16. For each new domain, a new A Record needs to be created for mobilestream. Right click on domain1 and select New Host (A or AAAA)….
| 72 |
1/13/201
17. In the New Host window that appears, type mobilestream in the Name field and then type 192.168.10.70 in the IP address field. Then click Add Host.
18. Click OK in the confirmation window when it appears.
Click Done.
| 73 |
1/13/201
19. Now that the Domain Sharding policy has been bound to the FEO test virtual server, it can be tested for effectiveness.
Minimize XenCenter, and return to Firefox. Open a new Firefox browser tab and click the
MobileStream Test bookmark in the toolbar.
20. On the FEO Test site, click the Domain Sharding Test link.
Click the Refresh button a couple of times in Firefox.
This will place all of the HTML and CSS in the cache of the NetScaler and implement the action that was created in the previous steps.
| 74 |
1/13/201
21. Now that the domains are being sharded by the NetScaler, you can check to see if the NetScaler has used domain sharding from the Front End Optimization statistics page.
Switch to the NetScaler GUI, and navigate to Optimization > Front End Optimization.
Click the Statistics link.
22. In the Statistics window, you can see that the NetScaler has completed domain sharding using the policy and action you created.
Exercise Summary
In this exercise, you created a new FEO action and policy for domain sharding. The new policy was then bound to the FEO test virtual server. You then created new domains at the DNS level for the NetScaler to interact with to load the images faster over multiple domains. Finally, all of these settings were tested using the FEO test virtual server.
| 75 |
1/13/201
Appendix
Appendix 1: Resetting the lab
Overview
This appendix shows you how to reset the lab in preparation to execute any module.
The lab is usually executed in order, starting with module 1. However it is possible to reset the lab so that it is ready to execute any module using a NetScaler batch file. This script will copy a master configuration file from the \var directory on the NetScaler, and place it in the \nsconfig file, then perform a warm reboot of the NetScaler.
Step by step guidance
Estimated time to complete this exercise: 3 minutes. Step Action
1. Open XenCenter, and select the NetScaler virtual machine, then select the Console tab.
2. Press Enter a few times to display the login: prompt.
| 76 |
1/13/201
4. Type the following command and press Enter: Batch -fileName /var/ex#.txt
Substitute the # with the exercise number you would like to work on next.
5. The NetScaler will perform a warm reboot and be ready to start again in about 2 minutes.
Appendix Summary
| 77 |
1/13/201
1.0 Original Christopher Rudolph January 2015
About Citrix
Citrix (NASDAQ:CTXS) is a cloud company that enables mobile workstyles—empowering people to work and collaborate from anywhere, securely accessing apps and data on any of the latest
devices, as easily as they would in their own office. Citrix solutions help IT and service providers build clouds, leveraging virtualization and networking technologies to deliver high-performance, elastic and cost-effective cloud services. With market-leading cloud solutions for mobility, desktop virtualization, networking, cloud platforms, collaboration and data sharing, Citrix helps organizations of all sizes achieve the speed and agility necessary to succeed in a mobile and dynamic world. Citrix products are in use at more than 330,000 organizations and by over 100 million users globally. Annual revenue in 2012 was $2.59 billion. Learn more at www.citrix.com.