ScyllaDB University Live | Free Virtual Training Event
Learn more
ScyllaDB Documentation Logo Documentation
  • Deployments
    • Cloud
    • Server
  • Tools
    • ScyllaDB Manager
    • ScyllaDB Monitoring Stack
    • ScyllaDB Operator
  • Drivers
    • CQL Drivers
    • DynamoDB Drivers
    • Supported Driver Versions
  • Resources
    • ScyllaDB University
    • Community Forum
    • Tutorials
Install
Search Ask AI
ScyllaDB Docs ScyllaDB Node.js Driver API Reference Modules policies

Caution

You're viewing documentation for an unstable version of ScyllaDB Node.js Driver. Switch to the latest stable version.

policies¶

Contains driver tuning policies to determine load balancing, retrying queries, reconnecting to a node, address resolution, timestamp generation and speculative execution.

Source

policies/index.js, line 3

Methods¶

(static) defaultAddressTranslator() → {AddressTranslator}

Returns a new instance of the default address translator policy used by the driver.

Source

policies/index.js, line 25

Returns:

Type
AddressTranslator

(static) defaultLoadBalancingPolicy(localDcopt) → {DefaultLoadBalancingPolicy}

Returns a new instance of the default load-balancing policy used by the driver.

Parameters:

Name Type Attributes Description
localDc string <optional>

When provided, it sets the data center that is going to be used as local for the load-balancing policy instance, with dc failover disabled.

When localDc is undefined, the load balancing policy will not be data-center aware.

Source

policies/index.js, line 37

Returns:

Type
DefaultLoadBalancingPolicy

(static) defaultReconnectionPolicy() → {ReconnectionPolicy}

Returns a new instance of the default reconnection policy used by the driver.

Source

policies/index.js, line 58

Returns:

Type
ReconnectionPolicy

(static) defaultRetryPolicy() → {RetryPolicy}

Returns a new instance of the default retry policy used by the driver.

Source

policies/index.js, line 50

Returns:

Type
RetryPolicy

(static) defaultSpeculativeExecutionPolicy() → {SpeculativeExecutionPolicy}

Returns a new instance of the default speculative execution policy used by the driver.

Source

policies/index.js, line 70

Returns:

Type
SpeculativeExecutionPolicy

(static) defaultTimestampGenerator() → {TimestampGenerator}

Returns a new instance of the default timestamp generator used by the driver.

Source

policies/index.js, line 78

Returns:

Type
TimestampGenerator

Was this page helpful?

PREVIOUS
ClientMetrics
NEXT
addressResolution
  • Create an issue
  • Edit this page

On this page

  • policies
    • Methods
ScyllaDB Node.js Driver
Search Ask AI
  • main
    • main
    • v0.6.1
  • Getting Started
  • Statements
    • Executing CQL Statements - Best Practices
    • Unprepared Statements
    • Batch Statements
    • Parameterized queries
  • Fetching Large Result Sets
  • Logging
  • Policies
    • Load Balancing
    • Retry Policies
  • Authentication
  • Shutdown
  • Migration Guide
  • API Reference
    • Modules
      • auth
        • AuthProvider
        • Authenticator
        • PlainTextAuthProvider
      • concurrent
      • datastax
        • graph
        • search
      • errors
        • ArgumentError
        • AuthenticationError
        • BusyConnectionError
        • DriverInternalError
        • NoHostAvailableError
        • NotSupportedError
        • OperationTimedOutError
        • ResponseError
      • geometry
      • mapping
        • DefaultTableMappings
        • Mapper
        • ModelBatchItem
        • ModelMapper
        • Result
        • UnderscoreCqlToCamelCaseMappings
        • TableMappings
      • metadata
        • Aggregate
        • ClientState
        • ColumnMetadata
        • Index
        • KeyspaceMetadata
        • MaterializedView
        • Metadata
        • SchemaFunction
        • Strategy
        • TableMetadata
        • UdtField
        • UserDefinedType
      • metrics
        • DefaultMetrics
        • ClientMetrics
      • policies
        • addressResolution
          • AddressTranslator
          • EC2MultiRegionTranslator
          • MappingAddressTranslator
        • loadBalancing
          • AllowListPolicy
          • DCAwareRoundRobinPolicy
          • DefaultLoadBalancingPolicy
          • LegacyDefaultLoadBalancingPolicy
          • LoadBalancingConfig
          • LoadBalancingPolicy
          • RoundRobinPolicy
          • TokenAwarePolicy
        • reconnection
          • ConstantReconnectionPolicy
          • ExponentialReconnectionPolicy
          • ReconnectionPolicy
        • retry
          • FallthroughRetryPolicy
          • RetryPolicy
        • speculativeExecution
          • ConstantSpeculativeExecutionPolicy
          • NoSpeculativeExecutionPolicy
          • SpeculativeExecutionPolicy
        • timestampGeneration
          • MonotonicTimestampGenerator
          • TimestampGenerator
      • tracker
        • RequestLogger
        • RequestTracker
      • types
        • BigDecimal
        • Duration
        • InetAddress
        • Integer
        • LocalDate
        • Long
        • ResultSet
        • ResultStream
        • Row
        • TimeUuid
        • Tuple
        • Uuid
        • Vector
    • Classes
      • AddressResolver
      • ByteOrderedToken
      • Client
      • ColumnInfo
      • DateRange
      • DateRangeBound
      • DseGssapiAuthProvider
      • DsePlainTextAuthProvider
      • Edge
      • Element
      • Encoder
      • EncoderMembers
      • ExecutionOptions
      • ExecutionProfile
      • FrameReader
      • GraphResultSet
      • HashSet
      • Host
      • HostMap
      • LineString
      • Murmur3Token
      • Path
      • Point
      • Polygon
      • Property
      • RandomToken
      • SslOptions
      • Token
      • TokenRange
      • Vertex
      • VertexProperty
    • Interfaces
    • Events
    • Global Functions and Constants
Docs Tutorials University Contact Us About Us
© 2026 ScyllaDB | Terms of Service | Privacy Policy | ScyllaDB, and ScyllaDB Cloud, are registered trademarks of ScyllaDB, Inc.
Last updated on 20 Jun 2026.
Powered by Sphinx 9.1.0 & ScyllaDB Theme 1.9.2