You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

The Elastic Cache Lookup component can be configured using the workflow section. It requires the following entities to be created

Below are the examples of how to configure the component. 

Create Workflow


Field

Required

Default

Multiple

NotesExample
descriptionYes-NoName of the component application.

"Elastic Cache Lookup"

propertiesYes-NoConfiguration object
Elasticsearch SettingsServer urltext-Complete Url where the feeds are going to be send. http://localhost:9200/bulk_
AuthenticationalternativesYesUser with the permissions to read from the Elastic index specifiednone
Index









Connection SettingsIdle connection timeoutnumber3600000Maximum time (in milliseconds) to keep an idle connection open.
Max connectionsnumber100Maximum number of connections to be opened.

Connections per targetnumber10Maximum number of connections opened for the same target.

Connection timeoutnumber15000Maximum time (in milliseconds) to wait for the connection.

Socket timeoutnumber15000Maximum time (in milliseconds) to wait for a socket response.

Connection throttlingbooleanfalseCheckbox to choose the enable connection throttling.

Throttling periodnumber5000Time period (in milliseconds) to throttle the connection.

Max connections per periodnumber500Maximum number of connections used during the throttling period.

Maximum retriesnumber3Maximum number of retries a failed document.

Retry delaynumber5000Time (in milliseconds) to wait before a retry.

CacheUse cachealternativestrueResults should be cached in memory.
Cache Eviction PolicyalternativessizeHow items should be selected for being deleted from the in-memory cache.

Max number of entriesnumber1000Max total number of entries to keep in the cache.

Max Total Weight (MB)number500Specifies the maximum weight of entries the cache must contain.

Time (min)number5Remove records that have been idle for an amount of time in minutes.

Lookup FieldsIndex lookup fieldtext-Specify Elastic index field name for the lookup.
Source lookup fieldtext-Specify field name from the incoming AspireObject for the lookup. Field availability will be searched first in 'doc' and then in 'doc.connectorSpecific' section.

Uppercase the source lookup field valuebooleantrueConvert the value of the source field into UPPERCASE value.

Lookup output fieldtext-Output fields from the lookup will be placed under this configured object.

DebugbooleanfalseOption if you want debug messages enabled.

Hit sizenumber1000Max mount of hits returned by the cache lookup. If -1 all hits will be returned.

Example 

PUT aspire/_api/credentials/2a5ca234-e328-4d40-bb2a-2df3e550b065
{
    "id": "2a5ca234-e328-4d40-bb2a-2df3e550b065",
    "description": "<Connector Name> Credential",
    "properties": {
		
    }
}

Update Connection


Field

Required

Default

Multiple

Notes

Example

idYes-NoId of the connection to update"89d6632a-a296-426c-adb0-d442adcab4b0",
descriptionNo-NoName of the connection object.

"MyConnection"

throttlePolicyNo-NoId of the throttle policy that applies to this connection object."f5587cee-9116-4011-b3a9-6b235b333a1b"
routingPoliciesNo[ ]YesThe ids of the routing policies that this connection will use.["313de87c-3cb9-4fe0-a2cb-17f75ce7d0c7", "b4d2579f-1a0a-4a8b-9fd4-d42780003b36"]
propertiesYes-NoConfiguration object






Example

{
    "id": "89d6632a-a296-426c-adb0-d442adcab4b0",
    "description": "<Connector Name> Test Connector",
    "properties": {
        
    }
}
  • No labels