Couchbase .NET SDK __CB_SDK_VERSION__

Show / Hide Table of Contents

Class EventingFunctionSettings

Advanced settings that may be adjusted.

Inheritance
object
EventingFunctionSettings
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Couchbase.Management.Eventing
Assembly: Couchbase.NetClient.dll
Syntax
[JsonConverter(typeof(EventingFunctionSettingsConverter))]
public class EventingFunctionSettings

Constructors

View Source

EventingFunctionSettings()

Declaration
public EventingFunctionSettings()

Properties

View Source

AppLogDir

Directory to write content of log() message files.

Declaration
public string AppLogDir { get; set; }
Property Value
Type Description
string
View Source

AppLogMaxFiles

Number of log() message files to retain when rotating.

Declaration
public int AppLogMaxFiles { get; set; }
Property Value
Type Description
int
Remarks

The minimum is 1 and the default is 10.

View Source

AppLogMaxSize

Rotate logs when file grows to this size in bytes approximately.

Declaration
public int AppLogMaxSize { get; set; }
Property Value
Type Description
int
Remarks

The minimum is 1024b and the max is 41943040b.

View Source

BucketCacheAge

Time in milliseconds after which a cached bucket object is considered stale.

Declaration
public int BucketCacheAge { get; set; }
Property Value
Type Description
int
Remarks

The minimum is 1 and the default is 1000.

View Source

BucketCacheSize

Maximum size in bytes the bucket cache can grow to.

Declaration
public int BucketCacheSize { get; set; }
Property Value
Type Description
int
Remarks

The minimum is 20971520 and the default is 67108864.

View Source

CheckpointInterval

Number of seconds before writing a progress checkpoint.

Declaration
public int CheckpointInterval { get; set; }
Property Value
Type Description
int
Remarks

The minimum is 1 and the default is 60.

View Source

CppWorkerThreadCount

Number of threads each worker utilizes.

Declaration
public int CppWorkerThreadCount { get; set; }
Property Value
Type Description
int
Remarks

Minimum is 1.

View Source

CurlMaxAllowedRespSize

Maximum allowable curl call response in 'MegaBytes'. Setting the value to 0 lifts the upper limit off. This parameters affects v8 engine stability since it defines the maximum amount of heap space acquired by a curl call

Declaration
public int CurlMaxAllowedRespSize { get; set; }
Property Value
Type Description
int
Remarks

The default is 100mb.

View Source

DcpStreamBoundary

Indicates where to start dcp stream from (beginning of time, present point) 'from_prior' is deprecated in 6.6.2.

Declaration
public EventingFunctionDcpBoundary DcpStreamBoundary { get; set; }
Property Value
Type Description
EventingFunctionDcpBoundary
View Source

DeploymentStatus

Indicates if the function is deployed. true=deployed, false=undeployed.

Declaration
public EventingFunctionDeploymentStatus DeploymentStatus { get; set; }
Property Value
Type Description
EventingFunctionDeploymentStatus
View Source

Description

Free form text for user to describe the handler. no functional role.

Declaration
public string Description { get; set; }
Property Value
Type Description
string
View Source

EnableAppLogRotation

Enable rotating this handlers log() message files.

Declaration
public bool EnableAppLogRotation { get; set; }
Property Value
Type Description
bool
View Source

ExecutionTimeout

Maximum time the handler can run before it is forcefully terminated (in seconds).

Declaration
public TimeSpan ExecutionTimeout { get; set; }
Property Value
Type Description
TimeSpan
Remarks

The minimum is 1 and the default is 60s.

View Source

HandlerFooters

Code to automatically append to bottom of handler code.

Declaration
public List<string> HandlerFooters { get; set; }
Property Value
Type Description
List<string>
View Source

HandlerHeaders

Code to automatically prepend to top of handler code.

Declaration
public List<string> HandlerHeaders { get; set; }
Property Value
Type Description
List<string>
View Source

LanguageCompatibility

Eventing language version this handler assumes in terms of syntax and behavior.

Declaration
public EventingFunctionLanguageCompatibility LanguageCompatibility { get; set; }
Property Value
Type Description
EventingFunctionLanguageCompatibility
Remarks

Default is '6.6.2'.

View Source

LcbInstCapacity

Maximum number of libcouchbase connections that may be opened and pooled.

Declaration
public int LcbInstCapacity { get; set; }
Property Value
Type Description
int
Remarks

The minimum is 1 and the default is 10.

View Source

LcbTimeout

Maximum time the lcb command is waited until completion before we terminate the request(in seconds).

Declaration
public TimeSpan LcbTimeout { get; set; }
Property Value
Type Description
TimeSpan
Remarks

The minimum is 1 and the default is 5.

View Source

LogLevel

Level of detail in system logging.

Declaration
public EventingFunctionLogLevel LogLevel { get; set; }
Property Value
Type Description
EventingFunctionLogLevel
Remarks

Default is INFO.

View Source

NumTimerPartitions

Number of timer shards. defaults to number of vbuckets.

Declaration
public int NumTimerPartitions { get; set; }
Property Value
Type Description
int
Remarks

1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024

View Source

ProcessingStatus

Indicates if the function is running (i.e., not paused). true=running, false=paused.

Declaration
public EventingFunctionProcessingStatus ProcessingStatus { get; set; }
Property Value
Type Description
EventingFunctionProcessingStatus
View Source

QueryConsistency

Consistency level used by n1ql statements in the handler.

Declaration
public QueryScanConsistency QueryConsistency { get; set; }
Property Value
Type Description
QueryScanConsistency
Remarks

The default is 'none' or 'not bounded'.

View Source

QueryPrepareAll

Automatically prepare all n1ql statements in the handler.

Declaration
public bool QueryPrepareAll { get; set; }
Property Value
Type Description
bool
Remarks

The default is false.

View Source

SockBatchSize

Batch size for messages from producer to consumer. normally, this must not be specified.

Declaration
public int SockBatchSize { get; set; }
Property Value
Type Description
int
Remarks

Default is 1.

View Source

TickDuration

Duration to log stats from this handler, in milliseconds.

Declaration
public int TickDuration { get; set; }
Property Value
Type Description
int
Remarks

The default is 60000ms.

View Source

TimerContextSize

Size limit of timer context object

Declaration
public int TimerContextSize { get; set; }
Property Value
Type Description
int
Remarks

The minimum is 20, the max is 20971520 and the default is 1024.

View Source

UserPrefix

Key prefix for all data stored in metadata by this handler.

Declaration
public string UserPrefix { get; set; }
Property Value
Type Description
string
Remarks

The default is 'eventing'.

View Source

WorkerCount

Number of worker processes handler utilizes on each eventing node.

Declaration
public int WorkerCount { get; set; }
Property Value
Type Description
int
Remarks

The minimum is 1 and the default is 1.

  • View Source
In this article
Back to top Copyright © 2020 Couchbase, Inc. All rights reserved.