38.3 Optimizing Indexing

If you run only one POA for the post office, you can adjust the indexing schedule. If indexing needs are extremely heavy for a post office, you can set up a dedicated indexing POA to meet those needs.

NOTE:To facilitate the Find feature in the GroupWise client, the POA searches unindexed messages as well as those that have already been indexed, so that all messages are immediately available to users whenever they perform a search. The POA does not search unindexed documents, so documents cannot be located using the client Find feature until after indexing has been performed.

38.3.1 Regulating Indexing

By default, the POA indexes messages and documents in the post office every 24 hours at 8:00 p.m. You can modify this interval if users need messages and documents indexed more quickly. To start indexing immediately, see Updating QuickFinder Indexes.

To adjust the interval at which indexing occurs:

  1. In ConsoleOne, browse to and right-click the POA object, then click Properties.

  2. Click GroupWise > QuickFinder to display the QuickFinder page.

    QuickFinder property page
  3. Make sure Enable QuickFinder Indexing is selected. 

  4. In the Start QuickFinder Indexing field, specify the number of hours and minutes after midnight you want the POA to start its indexing cycle.

    For example, if you set QuickFinder Interval to 6 and Start QuickFinder Indexing to 1 hour, indexing cycles would occur at 1:00 a.m., 7:00 a.m., 1:00 p.m., and 7:00 p.m.

  5. Decrease the number of hours and minutes in the QuickFinder Interval field so indexing occurs more frequently.

    The interval is measured from the start of one indexing cycle to the next, so that indexing starts at regular intervals, no matter how long each indexing session takes. By default, the start point of the cycle is 8:00 p.m.

    To avoid overloading the POA with indexing processing, a maximum of 1000 items are indexed per database for each indexing cycle. If a very large number of messages are received regularly, you should configure the POA with frequent indexing cycles in order to get all messages indexed in a timely manner.

    To handle occasional heavy indexing requirements, you can start indexing manually. See Updating QuickFinder Indexes.

  6. Click OK to save the new indexing settings.

    ConsoleOne then notifies the POA to restart so the new settings can be put into effect.

Corresponding Startup Switches You can also use the /qfinterval, /qfintervalinminute, /qfbaseoffset, and /qfbaseoffsetinminute switches in the POA startup file to regulate indexing.

POA Web Console You can control indexing for the current POA session on the Configuration page. Under the General Settings heading, click QuickFinder Indexing. If indexing is currently in progress, you can check the status of the indexing process on the Scheduled Events page.

38.3.2 Configuring a Dedicated Indexing POA

If your GroupWise client users rely heavily on indexed documents, you can set up a dedicated indexing POA so that indexing can be done quickly without impacting other POA functions. The steps provided in this section would be appropriate for a basic indexing POA. For a discussion of more complex configuration options, see Section 23.3, Indexing Documents.

To configure a basic dedicated indexing POA:

  1. Create a new POA object for the post office as described in Section 36.1.1, Creating a POA Object in eDirectory.

  2. Right-click the new POA object, then click Properties.

  3. Click GroupWise > QuickFinder to display the QuickFinder page.

    QuickFinder property page
  4. Make sure Enable QuickFinder Indexing is selected.

  5. In the Start QuickFinder Indexing field, specify the number of hours and minutes after midnight you want the POA to start its indexing cycle.

    The default is 20, meaning at 8:00 p.m.

  6. Set QuickFinder Update Interval low enough to keep up with the indexing demands of your GroupWise client users.

    To avoid overloading the POA with indexing processing, a maximum of 1000 items are indexed per database for each indexing cycle. If a very large number of messages are received regularly, you should configure the POA with very frequent indexing cycles in order to get all messages indexed in a timely manner.

    For continuous QuickFinder™ indexing, set QuickFinder Update Interval to 0 (zero).

  7. Click Apply to save the updated QuickFinder settings.

  8. Click GroupWise > Agent Settings.

  9. Set Message File Processing to Off. Make sure another POA handles message file processing.

  10. Deselect Enable TCP/IP (for Client/Server) and set TCP Handler Threads to 0. Make sure another POA handles client/server processing.

  11. Select Disable Administration Task Processing, so that this POA does not run an admin thread. Make sure that another POA handles administration tasks.

  12. Click Apply to save the updated agent settings.

  13. Click GroupWise > Maintenance.

  14. Deselect Enable Automatic Database Recovery. Make sure another POA handles database recovery.

  15. Set Maintenance Handler Threads to 0 (zero). Make sure another POA handles database maintenance and disk space management.

  16. Deselect Perform User Upkeep and deselect Generate Address Book for Remote. Make sure another POA handles these tasks.

  17. Click OK to save the new settings for dedicated indexing.

  18. Install the POA software on a different server from where the original POA for the post office is already running. See Installing GroupWise Agents in the GroupWise 7 Installation Guide.

  19. Add the /name switch to the POA startup file and specify the name designated when the new POA object was created. Also add the /name switch to the startup file for the original POA.

  20. Start the dedicated indexing POA.

Corresponding Startup Switches You can also use the /nomf, /notcpip, /norecover, /nonuu, and /nordab switches in the POA startup file to disable unwanted processing, then use the /qfinterval, /qfintervalinminute, /qfbaseoffset, and /qfbaseoffsetinminute switches to control the indexing schedule.

38.3.3 Customizing Indexing

By default, the POA indexes 500 items in a user or library database, then moves on to the next database during each QuickFinder indexing cycle. The indexing cycle is established on the QuickFinder property page of the POA object. By default, QuickFinder indexing is performed once a day at 8:00 p.m. If a database has more than 500 items that need to be indexed, items beyond 500 wait for the next indexing cycle.

Occasionally, circumstances arise where indexing needs are especially heavy for a short period of time. This can occur when you move users to a different post office or if the QuickFinder indexes for a post office become damaged. Startup switches are available for temporary use in the POA startup file to customize the way the POA handles indexing. In general, they are not intended for long-term use. You might want to set up a separate POA just to handle the temporary indexing needs, as described in Section 38.3.2, Configuring a Dedicated Indexing POA, and use these switches only with the dedicated indexing POA.

Because the switches are placed in the POA startup file, you must stop and then start the POA to put the settings into effect.

Determining What to Index

You can configure the POA to index just user mailbox contents or just library contents. Use the /qfnousers switch to focus on indexing library contents. Use the /qfnolibs switch to focus on indexing user mailbox contents. Use the /qfnopreproc switch to suppress even the generation of document word lists that are normally written to user databases that reference documents.

When you have a large number of user databases that need to be indexed, you can configure the POA to index a specific range of databases based on user FIDs. For a task of this magnitude, you should run multiple dedicated indexing POAs with each POA configured to process a specific range of databases. Use the /qfuserfidbeg and /qfuserfidend switches to define the range for each POA. You can determine the FID numbers of the databases by listing the user databases (userxxx.db) in the ofuser directory. The xxx part of the user database name is the FID.

You could also use these switches to single out a specific user database for indexing. Specify the same FID for both switches. To determine a user’s FID, click Help > About GroupWise in the GroupWise client. In Online mode, the FID is displayed after the username. In Caching or Remote mode, the FID is the last three characters of the Caching or Remote directory (for example, c:\novell\groupwise\gwstr7bh).

Determining Indexing Priority

The POA carries on many processes at once. If you are not using a dedicated indexing POA, you can configure the POA to make indexing a higher or lower priority task than responding to users’ activities in their mailboxes. You can also control how many items the POA indexes in each database that it processes. Use the /qflevel switch to control indexing priority. The table below explains the priority levels:

Table 38-1 QuickFinder Indexing Priority Levels

Priority Level

Description

0

Index a maximum of 1000 items at a time, rather than the default of 500.

1

Index a maximum of 500 items at time, using a low-priority thread. This keeps frequent daytime indexing cycles from interfering with users’ activities in their mailboxes.

2

Index a maximum of 1000 items at a time, using a medium-priority thread. This allows additional items in each database to be processed in each indexing cycle. Using a medium-priority thread makes indexing more important than some user activities in mailboxes. Users might notice some slowness in response from the GroupWise client.

3

Index a maximum of 2000 items at a time, using a high-priority thread. Using a high- priority thread makes indexing more important than many user activities in mailboxes. Users will notice some slowness in response from the GroupWise client. This is warranted only when the immediate completion of indexing is extremely important.

999

Index constantly until all databases have been indexed, then wait until the next indexing cycle set on the QuickFinder property page of the POA object before starting to index again.

If you have users who consistently receive more items than are processed during your current daily indexing cycle, you could implement an appropriate /qflevel setting for permanent use.

Reclaiming Disk Space

The POA uses .idx files to store compressed indexes. It uses .inc files to store incremental indexes that have not yet been compressed. At regular intervals, the POA compresses the contents of the .inc files and adds the data to the .idx files. Afterwards, it retains the previous .idx and .inc files for a period of time. Use the /qfdeleteold switch to delete the previous versions of the .idx and .inc files to conserve disk space during periods of heavy indexing. It is primarily applicable when using /qflevel=1 where indexing is a lower priority task. For /qflevel=2 and /qflevel=3, indexing itself is a higher priority than compression and deletion cleanup tasks.