|
Sun Identity Management
Solutions for authentication, authorization, provisioning, and auditing
» Download Now
Sun Java System Access Manager and Sun Java System Federation Manager FAQ: Performance and Sizing, Policy, Session Failover and Deployment, and Agents
Performance and Sizing
Q: Must I precompile every time I restart the Web server? No. Compile JavaServer Pages (JSP) pages once only unless you have edited them. Q: Could you elaborate on the size and purging operations for The Restart the For more details, see "Performance Tests With the Q: When should I recompile: before or after starting the Web server? After. Each time a Web container receives a request, it recompiles the JSP page if it has not been compiled and runs the servlet generated by the compilation. If you recompile the JSP page after starting the Web server, the Web server skips the first step. For large JSP pages, recompilation by the Web server might take awhile. For more details, see "Precompiling the Console JSP" in the Access Manager Developer's Guide. Policy
Q: How do I resolve an authorization failure that results from the clocks of the Access Manager and Policy Agent machines being out of sync? By configuring the Here is what the related content in the
Q: In case of user attribute changes, does Access Manager maintain the caches and notify the Policy Agent? Because of the persistent searches in Sun Java System Directory Server by Access Manager, irrespective of what plug-ins you configure for the user data store (Access Manager SDK or LDAPv3), Access Manager caches are in sync. User-profile attributes sent to the Policy Agent, except those sent by the policy's Response Provider plug-in, are not cached by the policy engine. Those sent by the plug-in are cached on the policy server up to the Q: How do I configure the header attributes sent to the application by the Policy Agents on a per-policy basis? While defining a policy, you can configure Response Providers in the same user interface in which you configure the rules and subjects. If the policy is triggered in the decision-making process, that is, if the subject, rule, and conditions match, the policy includes its response values in the response to the Policy Agent, which then sets the attributes accordingly. On the side of the Policy Agent, you must enable the setting of response attributes and direct them to the header instead of to the cookie. Q: How do I protect a resource with a policy that contains two authentication schemes? Set multiple values in Q: How do I obtain the names of all the policies for a particular user? Use the class For more details, see the documentation on You can use a similar API, For more details, see the documentation on Q: In the case of many Web hosts with the same URL, should I make the host name a wild card or create a separate policy for each of the hosts? Make the host name a wild card. Q: What is the best practice for managing a large number of production policies, such as when an application changes its URL for redployment? Do I have to update each policy manually? Iterate the policies, inspect the resource names, programmatically modify the policies, and then save the changes with the Q: What is the procedure for migrating an Access Manager server from preproduction to production? In particular, I'd like to migrate the policies. See the section "Exporting Policies to Other Access Manager instances" in Chapter 1 of the Sun Java System Access Manager 7.1 Administration Guide. Q: Why are the searches for available subject values not returning any value in the suborganizations? Most likely, this error occurs because the LDAP Bind Password field in the policy's Configuration Service template in the suborganization is empty. While creating that template, be sure to specify the password and save the template afterwards. SessionFailover and Deployment
Q: Does the session framework require sticky load-balancing from the Load Balancer in the configuration for session failover? Sticky load-balancing is not required for the session framework to function. Even if the session request is sent to the wrong server, the built-in routing logic in the framework would ensure that the request arrives at the correct servera process that's completely transparent to the clients. Note, however, that lack of sticky load-balancing results in extra forwarding and impacts performance. Q: How does session failover occur for a request? After authentication, an internal algorithm determines the Access Manager servers (primary, secondary, tertiary, and so forth) for a user session. The Access Manager server on which the user session was created is one of those servers. If the primary Access Manager server goes down, the server at which the session request landed determines which other server services the request and forwards the request there. Note that if the session request lands on the secondary server, no forwarding occurs. The secondary server then retrieves the user session from The above process occurs even if the load-balancing cookie is set and the Load Balancer has forwarded the request to the Access Manager server according to the cookie's value. When the primary Access Manager server is up and running again, it continues to service the requests for the sessions it originated. Concurrently, the secondary server purges the master session, which it retrieved when the primary server was down, through either user- or system-initiated cleanup actions. Q: How many Java Message Queue broker instances must I install for each Access Manager server and where? You need not set up a separate Java Message Queue broker instance for each Access Manager instance. Rather, install the broker on the Multiple brokers are required only for high availability among brokers so that when one broker fails, another one can take over. Access Manager randomly selects the Java Message Queue broker with which to communicate in the cluster. Q: How do I run the Here is the syntax: For example: Q: In the case of multiple Access Manager servers with session failover enabled, what happens if the session validation request lands in a server that does not hold the session? If multiple Access Manager instances reside behind the Load Balancer, the session always exists on one server instance only. However, session validation can occur from any server instance. If the request hits an instance that does not hold the session, Access Manager forwards the request to the server in which the session was first created. Q: In a multiserver deployment, can I deploy all Access Manager instances behind a Load Balancer or firewall? The answers depends on two factors:
Here are the scenarios:
Q: Can I view the events during session failover? Yes. First, stop the Access Manager server that originated the session. You can then see the sessions being transferred in the Access Manager Administration Console. Alternatively, enable the In addition, to see the messages in the Q: What are the Java Message Queue store configurations? Access Manager does not use any persistence mechanism of Java Message Queue, so no store configurations are required. Q: What are the recommended virtual-machine settings for the Java Message Queue broker? Set the following: For more information on the configurations, see the Sun Java System Message Queue Administration Guide. Q: What are the tuning options for the We recommend that you leave the default virtual machine settings as is. The default cache size is 8 Mbytes. To optimize performance, change the size to 28 Mbytes, for example: Q: What is the difference between deployment of session failover and deployment of multiple Access Manager servers? Session failover in Access Manager retains the authenticated session state in case of a hardware or software failure of a single server. Failover provides both infrastructure redundancy (no single point of failure) and state redundancy (no information loss in the existing sessions after failure). Unlike session failover, deployment of multiple Access Manager servers ensures only the continuation of service availability for new sessions. Q: In the configuration for session failover, what's the relationship among the policy agents, the Load Balancer, and the Access Manager servers behind Load Balancers? The configuration for Access Manager session failover is actually a Load Balancer with multiple Access Manager servers behind the Load Balancer. From the view of the client, for example, the Policy Agent, the Load Balancer is the sole entry point to the Access Manager server farm. All the failover activities among those servers are transparent to the client. Q: What does Access Manager support in session failover? Access Manager 7.x supports the following in session failover:
Q: Where is the documentation on session failover? "Implementing Access Manager Session Failover" in the Access Manager Deployment Planning Guide. Q: Why does Access Manager have its own session failover implementation? Access Manager 7.x is Web container-neutral, independent of any specific failover capabilities provided by the Web containers. This implementation stemmed from the following factors:
Q: Why did you change the session-failover architecture from High Availability Database (HADB) to Java Message Queue/Berkeley Database (BDB)? Java Message Queue/BDB offers the following advantages over HADB:
Agents
Q: Can the Policy Agent control a session's idle timeout parameter? No. In a typical deployment, only Access Manager can change a session's idle timeout parameter. Q: Can I limit the number of sessions on the Policy Agent? Yes, you can specify on the Access Manager server a limit on the number of sessions being created. Note that no limit applies for the number of sessions on the Policy Agent, which terminates sessions only when they expire. Q: When I set the No. Note, however, that the Policy Agent makes a call only if LDAP or response attributes are to be fetched. Q: If the protected resources reside only on the managed server, must I install the Policy Agent on the BEA WebLogic administration server? Yes. That's because you must set security parameters on the administration server, from which the managed servers obtain the configurations. Q: Does Policy Agent 2.2 support nonroot installations? Yes. Q: After I've installed the Policy Agent on BEA WebLogic 8.1 SP4, my test application fails. Any suggestions for a resolution? First, verify that As a resolution, verify that the following are set on the Policy Agent container:
Also check that the To quickly isolate a test case, reinstall BEA WebLogic 8.1 SP4, the Policy Agent, and the sample application. Follow the instructions in the sample application to create users, roles, and policies. If that application works, you have a baseline in which to isolate the problem. Q: If Access Manager is in legacy mode, is any Policy Agent 2.2 capability lost? No. The main difference between legacy mode and realm mode is how configuration data is stored. In legacy mode, it's stored with each of the organizations, which makes for an intrusive setup. In realm mode, the data is centrally stored under |
|
|
| ||||||||||||