Spring Data JPA Couchbase Properties

Property List and Explanation

Common Application Properties (Link)

KeyDefault ValueExplanation
spring.couchbase.bootstrap-hostsCouchbase nodes (host or IP address) to bootstrap from.
spring.couchbase.bucket.namedefaultName of the bucket to connect to.
spring.couchbase.bucket.passwordPassword of the bucket.
spring.couchbase.env.bootstrap.http-direct-portPort for the HTTP bootstrap.
spring.couchbase.env.bootstrap.http-ssl-portPort for the HTTPS bootstrap.
spring.couchbase.env.endpoints.key-value1Number of sockets per node against the key/value service.
spring.couchbase.env.endpoints.queryservice.max-endpoints1Maximum number of sockets per node.
spring.couchbase.env.endpoints.queryservice.min-endpoints1Minimum number of sockets per node.
spring.couchbase.env.endpoints.viewservice.max-endpoints1Maximum number of sockets per node.
spring.couchbase.env.endpoints.viewservice.min-endpoints1Minimum number of sockets per node.
spring.couchbase.env.ssl.enabledWhether to enable SSL support. Enabled automatically if a “keyStore” is provided unless specified otherwise.
spring.couchbase.env.ssl.key-storePath to the JVM key store that holds the certificates.
spring.couchbase.env.ssl.key-store-passwordPassword used to access the key store.
spring.couchbase.env.timeouts.connect5000ms
Bucket connections timeouts.
spring.couchbase.env.timeouts.key-value2500msBlocking operations performed on a specific key timeout.
spring.couchbase.env.timeouts.query7500msN1QL query operations timeout.
spring.couchbase.env.timeouts.socket-connect1000msSocket connect connections timeout.
spring.couchbase.env.timeouts.view7500msRegular and geospatial view operations timeout.
spring.couchbase.passwordCluster password when using role based access.
spring.couchbase.usernameCluster username when using role based access.
spring.data.couchbase.auto-indexfalseAutomatically create views and indexes. Use the meta-data provided by “@ViewIndexed”, “@N1qlPrimaryIndexed” and “@N1qlSecondaryIndexed”.
spring.data.couchbase.consistencyread-your-own-writesConsistency to apply by default on generated queries.
read-your-own-writes
eventually-consistent
strongly-consistent
update-after
spring.data.couchbase.repositories.typeautoType of Couchbase repositories to enable.

application.yml

spring:
  couchbase:
    password:
	username:
    bootstrap-hosts: localhost
	bucket:
	  name: default
	  password: couchbase
    env:
	  bootstrap:
	    http-direct-point:
		http-ssl-port:
      endpoints:
	    key-value: 1
		queryserivce:
		  max-endpoints: 1
		  min-endpoints: 1
		viewservice:
		  max-endpoints: 1
		  min-endpoints: 1
      ssl:
	    enabled:
		key-store:
		key-store-password:
	  timeouts:
        connect: 5000
	    key-value: 2500
        query: 7500
		socket-connect: 1000
        view:	7500
   data:
     couchbase:
	   auto-index: false
	   consistency: read-your-own-writes
	   repositories:
	     type: auto
Java Server
スポンサーリンク
Professional Programmer2

コメント