Série de mini truc en anglais .. Le temps me manque
Basé sur une présentation de Paul Mooney / Blue Wave Technology.
3 minutes de lecture, des heures de gagner....
Cluster Commands: Créé une base ou une réplique - Vous pouvez créer une base depuis un serveur vers un autre en utilisant les commandes consoleserveur
CL copy serverA!!db1.nsf serverB!!db2.nsf Créer une copie Notes (Pas une réplique)
- Utilisation de paramétres divers
- CL copy serverA!!db1.nsf serverB!!db2.nsf REPLICA créé une réplique
- CL copy serverA!!db1.nsf serverB!!db2.nsf TEMPLATE créé une copy de design seul
- CL copy db1.nsf db2.nsf Créé une copie sur le serveur lui même
Fonctionne avec ou sans cluster défini - toutefois le paramètre CLUSTER_ADMIN_ON doit être activé
Mail Configuration Updates - Apply router configuration changes immediately
- Type “Tell router update configuration” on the console
- Get delivery stats from the router
- “Tell router delivery stats”
Saving Mail File Space with Single-Copy - Modify the template to become a single-copy template
- Run the design task
- Updates mail databases’ property from the template
- Run the compact task
- Saves approx 10MB per mail file
SMTP Port Forcing - Using multiple network cards in a Domino server, you can force SMTP traffic through a specific port to the appropriate card (or any internet port other than HTTP)
- Allows splitting of traffic by port, i.e., NRPC vs. SMTP
- Useful in DMZ environment
- Map the IP address to the port using the SMTPNotesPort ini variable
as shown in the example below
Ports=TCPIP, TCPIPSMTP
TCPIP=TCP, 0, 15, 0
TCPIP_TCPIPAddress=0,10.12.51.1:1352
TCPIPSMTP=TCP, 0, 15, 0
TCPIPSMTP_TCPIPAddress=0, 207.41.72.20:1352
SMTPNotesPort=TCPIPSMTP
Limiting the Availability of DWA Tabs - Domino Web Access (DWA) interface loads all tabs by default
- Welcome Page, Mail, Calendar, To Do, Contacts, Notebook
- What if you want to limit the tabs?
- For instance, only have users see the Mail and Contacts tabs
- Starting in 7.0, the ini variable, iNotes_WA_Areas, allows enabling and disabling of tabs
DWA Performance — Reuse Windows - To force DWA to reuse windows instead of opening up new browser windows every time a link is clicked, use:
- iNotes_WA_ReuseChildWindows=1
- This ini variable is available with the 6.5.3 performance fix and above
DWA Performance — Use Cached Icons - To improve DWA performance, create a Web Site Rule document to prevent repeated retrieval of icons
Troubleshooting HTTP Configuration - Issue a Tell command at the server console
- Tell HTTP Dump Config
- Dumps HTTP configuration to HTTPCFG.txt in:
- x\Lotus\Domino\data\IBM_TECHNICAL_SUPPORT
- Excellent method of getting full configuration of HTTP stack and includes:
- Rules
- Port settings
- Don’t forget “Tell HTTP refresh”
- Rereads HTTP config without restart
HTTP Logging — DOMLOG.NSF File Size - Don't use this stuff ... but if you have to.. - DOMLOG.NSF records all GET and POST requests, so it can become very large
- You can ignore certain requests
- All image requests
- All GET requests
- Requests from certain IP addresses
- For example, to ignore GET requests:
1. Go to the server document
2. Then, Internet Protocols/HTTP tab
- Exclude from logging section
- Requires HTTP refresh to take effect
HTTP DOMLOG.NSF Cleanup - Another way to decrease the size of the DOMLOG.NSF database is to enable the cleanup Agent
- This purges data over 10 days old from the database
Restricting the HTTP Upload Size - Earlier versions of Domino had no limit on uploaded attachments
- Performance and stability issues occur if no limit is set
- As of Release 5.x, you can control the POST size
- Set the Maximum POST data field in the Server document
Note: If Internet Site documents are used, the POST size can be set in the Site document instead
HTTP and Internet Passwords - HTTP password changes are cached on the server
- Can confuse users
- At some point, both their old and new passwords work!
- HTTP_PWD_CHANGE_CACHE_HOURS=0
- Set in the notes.ini file
- Prevents both passwords from functioning
- The moment the user changes his/her password, it is the only active password
HTTP Web Agents - Agents initiated by an HTTP application are NOT managed by the AMgr task
- They are managed by the HTTP task
- This is useful to know in order to debug major HTTP peaks
HTTP Web Agent Timeouts - Troublesome HTTP Web Agents can hurt HTTP performance
- Reporting Agents are an example
- For example, if the user clicks a button that generates a large report over a browser, this could affect the HTTP stack (consuming resources)
- Set HTTP Agents to timeout after x seconds
- Default is not set
- Poorly configured HTTP triggered agents could “hurt” your server
Restricting Web Access - The database property, “Don’t allow URL open,” ensures a database will not be opened from a Web client
- Restricts: http://Host/Database.nsf/* commands
- Sends 500 Not Authorized error
Database Creation - When creating new replicas of databases, or ensuring that replicas exist, use the Admin client to create the replicas from the Files tab
- Right-click on the folder that contains the files to replicate and then choose New Replica(s)
- The request for replica creation of all databases in the folder is submitted to ADMIN4.NSF
Clustering Over Private Ports - A typical clustering architecture has a private NIC between cluster servers and a “public” NIC for user access over LAN/WAN
- Force cluster traffic through the private NIC
- Public switch will not be flooded with traffic from clrepl task
- Public NIC accepts user/server traffic — not flooded with cluster traffic
To force the cluster traffic through a private NIC:
1. Give each NIC an IP address
2. Create two ports in Domino server
- Admin client/server tab/ports option
3. Create two ports in the Server document
- Ports section/Notes network ports
4. Map the ports to the IP address
- portname_TCPIPADDRESS=0,192.168.0.1:1352
5. Map cluster traffic to the port
- SERVER_CLUSTER_DEFAULT_PORT=portname
Cluster auxiliary port (ND8) - What if the private NIC fails?
- You should have standard replication as a backup to cluster replication anyway
- For a few reasons!
- Server_Cluster_Auxilary_Port=*
- Tells the cluster engine to failover to alternative port if default port is unavailable
Cluster Work Queues - Cluster performance is dependent on the work queue depth
- Type “Sh stat replica” on the console
- Look for cluster work queue depth statistics
- Work queue depth is critical to cluster performance
Customizing Client Failover Errors - When a server fails with a database open, a user gets this message, known as Error 0807
- Or, a user might get this message, known as Error 0A02
You can change the error messages by adding these lines to your NOTES.INI file
- Err_0807=Your e-mail server is no longer responding. However, you may be able to switch to a backup server and continue working. To do this, you must close your mail file and re-open it.
- Err_0A02=Your e-mail server is no longer responding. However, you may be able to switch to a backup server and continue working. To do this, you must close your mail file and re-open it.
Clustering and Replication Settings - Replication formulas are IGNORED by cluster replication
- All data is transferred regardless of replication formulas
- Data that “should not” be replicated will be removed by standard replication
Enable Cluster Commands (Even Without !!) - To use some “documented” features of a cluster task
- Set config CLUSTER_ADMIN_ON=1
- A server DOES NOT have to be in a cluster for this to work!
Fixing Bookmark.nsf Corruption - In the case of local design element corruption, you don’t always have to delete bookmark.nsf!
- For example, users get errors when opening databases from the server
- Removing the cache and bookmarks resolves it
- It really annoys users!
- Open the bookmark.nsf database
- Hold CTRL + SHIFT and click View Go To
- Select (ByURL) view
- Select all the documents
- Delete them
Collecting All Database Information from the Catalog CATALOG.NSF database records all database information that has the following fields checked in database properties
- In fact … the catalog.nsf holds ALL database and template information!
- Hold down CTRL + SHIFT when opening a database
- Select $ReplicaID view
- All databases/templates listed
- Regardless of the db property checked
- Very, very useful for audits
Diagnostic Collection - You can configure the diagnostic collection feature on servers
- Crash information is sent to a mail-in database!
- Build the fault reports database
- Set as mail-in database
- All .nsd and console.log information will be mailed to the database
- Fault Analyzer in ND7
- Collates and displays information relevant to the crash(es)
Troubleshooting - You can also configure the diagnostic collection feature on clients!
- Set in the Location document on the client
- Can be forced via policy
- Client crash information mailed to you!
- No need to ask the dreaded end user!
Anti-Virus Software on Domino Servers - OS platform AV software
- Exclude your TMP directory
- Exclude your data directory
- Exclude your Txn directory
- Exclude your view rebuild directory
- These folders constantly change
- Performance of your server can be hampered by the OS AV software
- Use Domino AV software for the Domino engine
- Alternate your AV products between the platform and Domino engine!
Performance and Transactional Logging - Transactional Log files should NOT run on the same RAID array as the data drive
- Separate disks
- Local if possible (Raid 1)
- If on a Storage Area Network (SAN), use local drives for the Txn logs/view rebuild directory
Checking Server Connectivity Tool - JPING
- Trace testing for Domino servers
- www-10.lotus.com/ldd/sandbox.nsf/ecc552f1ab6e46e4852568a90055c4cd/
222294a30361b72888256aa20083873e?OpenDocument&Highlight=0,connect
- Always very useful to test ports and DNS
- Similar to traceroute and ping for Domino!
Performance and Security Settings - To aid performance, avoid using wildcards (*) in the Server security settings (Server document)
Port Compression - Enable network port compression!
- This is especially good for server-to-server communication
- Must be enabled on both sides
- Up to 60% compression of data
View Indexes and Performance - View index rebuild directory
- Directory used by update/updall tasks for rebuilding indexes
- Usually the windows TEMP directory
- Set path — separate array/disk if you can
- View_ReBuild_Dir=f:\views
- Huge performance boost
Policies - Administrator wants to push down a NOTES.INI setting to all clients
- Or settings for the current location document
- The key here is that it will change the “current location”
- By modifying the desktop settings form, you can add/change any notes.ini or location setting you wish!
- Caution: Requires a developer!
- Full instructions can be found in the Admin help database
Checking Policies on Clients - Want to check what policies have been applied to the client locally?
- Open the users’ local address book
- Hold CTRL + SHIFT and choose View
Goto from the menu - Open the $Policies view
- For more information on policies and troubleshooting, go here:
- www.pmooney.net/blogsphe.nsf/d6plinks/PMOY-6M326J#comments
Mail Settings with Policies - Configure and use Mail policies wisely!
- Don’t restrict all features to be changed by users
- Users don’t appreciate mail preferences being forced on them!
- Example: Letterhead
- Enable the Mail disclaimer feature
- Separate mail disclaimers per policy!
- Different departments could require different disclaimers