Showing posts with label MDEX. Show all posts
Showing posts with label MDEX. Show all posts

Saturday, 16 September 2017

Endeca | Monitoring Endeca components

Monitoring is the way to ensure that application components are working as expected. You can monitor Endeca components using below steps.

Monitoring Endeca components
Monitoring Endeca components

1.  MDEX : To check the aliveness of Dgraph access : http://DgraphServerNameOrIP:DgraphPort/admin?op=ping
 For example : http://localhost:15000/admin?op=ping

This command returns light weight html : dgraph JagdevSingh-PC:15000 responding at Sat Sep 16 21:55:51 2017
 
2.  CAS : To check the aliveness of CAS access : http://CASServerNameOrIP:CASPort/cas?wsdl
For example : http://localhost:8500/cas?wsdl 

3.  EAC Central Server :To check the aliveness of EAC Central Server access : http://machine_name:8888/eac/ProvisioningService?wsdl
For example : http://localhost:8888/eac/ProvisioningService?wsdl

4.  EAC Agent  :  To check the aliveness of EAC Agent access : http://machine_name:8888/eac-agent/IDelegateServer?wsdl
For example : http://localhost:8888/eac-agent/IDelegateServer?wsdl

5.Record Store :  To check the aliveness of Record Store access : http://CASMachineNameOrIP:CASPort/<RecordStoreName>?wsdl
For example : http://localhost:8500/Discover-dimvals?wsdl

Saturday, 12 November 2016

MDEX Performance boost | Increase Number of threads

MDEX engine can be configured to run in multi threaded mode. By default MDEX runs in multi threaded mode only with number of threads configured to 1. Multi threaded mode cannot be disabled.

Engine 
How to configure [increase] number of threads : Number of threads are controlled with --threads flag. Specify the --threads flag when starting the MDEX Engine. Or you can mention same in MDEX configuration xml file. For example

 <arg>--threads</arg>
      <arg>2</arg>

 
Key benefits of multi threaded MDEX engine.

Large index files on disk : Single index files are shared between all the threads.
Long-running queries   : Some of thread responds to long running queries while others can respond to different queries.
Simplified system management and network architecture : Need to configure only single MDEX engine.
Applications with high throughput requirements with limited hardware resources : Fewer hard ware resources required than multiple single threaded MDEX engines.
Applications that heavily use the MDEX Engine dynamic cache : Threads in multi threaded MDEX shares the same dynamic cache.

Note : Recommended number of threads for the MDEX Engine is typically equal to the number
of cores on the MDEX Engine server.

Wednesday, 12 October 2016

ATG 11.1 CRS | SEVERE: Unable to retrieve sites - unable to locate root node

After starting weblogic server, tried to hit CRS home page. But got the blank page.

Below is the exception from logs.

==========================================================================
Oct 12, 2016 9:46:58 PM com.endeca.infront.site.SiteManager getSite
SEVERE: Unable to retrieve sites - unable to locate root node
**** Error      Wed Oct 12 21:47:00 IST 2016    1476289020935   /atg/endeca/assembler/droplet/InvokeAssembler   A problem occurred assembling the content for content item /content/Web/Home Pages. The response received was {previewModuleUrl=http://localhost:8006/ifcr, @type=ContentSlot, atg:currentSiteProductionURL=/crs/homeus, canonicalLink=com.endeca.infront.cartridge.model.NavigationAction@2a2248a2, ruleLimit=1, @error=com.endeca.infront.content.ContentException: com.endeca.navigation.ENEConnectionException: Error establishing connection to retrieve Navigation Engine request 'http://localhost:15000/graph?node=0&profiles=site.homeSite|sitegroup.siteGroupUS|NoPriceRange&offset=0&nbins=0&merchdebug=1&irversion=640'. Tried all: '1' addresses, but could not connect over HTTP to server: 'localhost', port: '15000' Check MDEX Logs and specified query parameters. , contentCollection=/content/Web/Home Pages}. Servicing the error open parameter.
==========================================================================

Solution : Start\re-start MDEX Engine.

Saturday, 4 July 2015

Enabling the older IR version in MDEX

Every request in newly created Endeca application was throwing ENEException.

Here is the error from Dgraph log.

=======================================================================

ERROR 06/13/15 14:51:16.438 UTC (1434207076438) DGRAPH {dgraph} Requested output IR version '620' is supported by this release of the software but not enabled. Use the --back_compat flag to enable the older IR version.
WARN 06/13/15 14:51:16.438 UTC (1434207076438) DGRAPH {dgraph} Error processing HTTP exchange 2: Error:[MDEX] Failed to parse URL: '/graph?node=0&offset=0&nbins=10&irversion=620'

=======================================================================

The issue was due to version mismatch in API and running MDEX.

Solution : Enable backward compatibility in MDEX.

This can be done in two ways.

1.  MDEX configuration window in EAC admin console of the workbench.
  • Stop MDEX.
  • Add --back_compat 620 to the argument. Here is configuration snapshot.



  • Start MDEX.
 2.  Update startup argument in MDEX configuration file [DgraphDefaults.xml].

 <arg>--back_compat</arg>
      <arg>620</arg>

Tuesday, 31 March 2015

Create And Provision Endeca Application with the Deployment Template


Here are the steps to create an Endeca application from scratch and provision it using deployment template.

Application Creation 
 
      1. Open command line and change directory to ..\...\ToolsAndFrameworks\3.1.2  
          \deployment_template\bin and invoke deploy script. 

           For ex. C:\Endeca\ToolsAndFrameworks\3.1.2\deployment_template\bin\deply.bat
 
      2. Provide configuration parameter/values as script prompts you. First of all it will confirm
          IAP version. Then it will prompt following information.
  • Application Name.
  • Application Deployment directory.
  • EAC port.
  • Workbench port.
  • Live dgraph port.
  • Authoring Dgraph port.
  • Log Server port.
Screen  Captures for application creation.

For port values you can use any available port on your machine, or use default one.At the end you will get message that appplication deployed successfully.

Now application creation is done. It is time to provision it. Once application provisioned it will be available for configuration in Endeca Workbench.

To provision an application.

Go to \control directory of your application you created earlier (above steps).
Invoke initialize_services.bat or initialize_services.sh script. This script won't prompt for any values.

Here is the screen capture of application provisioning.
 
 

Saturday, 14 February 2015

MDEX Engine 6.4 language-specific, dictionary based, linguistic analysis features

Here is the list of new language specific features of  MDEX 6.4.

Segmentation The process of breaking up the non-whitespace language's text into meaningful units.
Tokenization The process of breaking a stream of text up into words, phrases, symbols, or other meaningful elements.
Orthographic normalization The creation of a standard indexed form for diacritic marks.
Decompounding The decomposition of compound word forms into their base terms.
Dynamic stemming The process of determining the base form of a word; a process based on dictionary entries and language specific rules.
Stop words A list of words to be ignored by the Endeca MDEX Engine. Sample stop word lists are now provided for each supported language.