Skip to content

Generate documentation of ServiceDiscovery automatically - #11369

Merged
sijie merged 4 commits into
apache:masterfrom
315157973:service-discovery
Jul 22, 2021
Merged

sijie merged 4 commits into
apache:masterfrom
315157973:service-discovery

Conversation

@315157973

Copy link
Copy Markdown
Contributor

Master Issue: #10041

Motivation

The config object in the Service Discovery module has been annotated.
So the document can be automatically generated.
But this module and Pulsar proxy module both depend on broker-common, so we need to move the common CMD to the common module, otherwise we need to copy the code.

Modifications

  1. Move common CMD to broker-common
  2. Add unit test for Service Discovery

Verifying this change

@315157973 315157973 closed this Jul 19, 2021
@315157973 315157973 reopened this Jul 19, 2021
@315157973

Copy link
Copy Markdown
Contributor Author

Service discovery

Name Description Default
zookeeperServers Local-Zookeeper quorum connection string null
configurationStoreServers Configuration Store connection string null
zookeeperSessionTimeoutMs ZooKeeper session timeout in ms 30000
zooKeeperCacheExpirySeconds ZooKeeper cache expiry time in seconds 300
servicePort Port to use to server binary-proto request Optional[5000]
servicePortTls Port to use to server binary-proto-tls request Optional.empty
webServicePort Port to use to server HTTP request Optional[8080]
webServicePortTls Port to use to server HTTPS request Optional.empty
bindOnLocalhost Control whether to bind directly on localhost rather than on normal hostname false
superUserRoles Role names that are treated as "super-user", meaning they will be able to do all admin operations and publish/consume from all topics []
authorizationAllowWildcardsMatching Allow wildcard matching in authorization (wildcard matching only applicable if wildcard-char: * presents at first or last position eg: .pulsar.service, pulsar.service. false
authenticationEnabled Whether enable authentication false
authenticationProviders Authentication provider name list, which is a list of class names []
authorizationEnabled Whether Enforce authorization false
authorizationProvider Authorization provider fully qualified class-name org.apache.pulsar.broker.authorization.PulsarAuthorizationProvider
tlsCertRefreshCheckDurationSec Tls cert refresh duration in seconds (set 0 to check on every new connection) 300
tlsCertificateFilePath Path for the TLS certificate file null
tlsKeyFilePath Path for the TLS private key file null
tlsTrustCertsFilePath Path for the trusted TLS certificate file
tlsAllowInsecureConnection Accept untrusted TLS certificate from client false
tlsProtocols Specify the tls protocols the broker will use to negotiate during TLS Handshake. Example:- [TLSv1.3, TLSv1.2] []
tlsCiphers Specify the tls cipher the broker will use to negotiate during TLS Handshake. Example:- [TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256] []
tlsRequireTrustedClientCertOnConnect Specify whether Client certificates are required for TLS. Reject the Connection if the Client Certificate is not trusted. false
tlsEnabledWithKeyStore Enable TLS with KeyStore type configuration in broker false
tlsProvider Full class name of TLS Provider null
tlsKeyStoreType TLS KeyStore type configuration in broker: JKS, PKCS12 JKS
tlsKeyStore TLS KeyStore path in broker null
tlsKeyStorePassword TLS KeyStore password in broker null
tlsTrustStoreType TLS TrustStore type configuration in broker: JKS, PKCS12 JKS
tlsTrustStore TLS TrustStore path in broker null
tlsTrustStorePassword TLS TrustStore password in broker null
properties Can store string in key-value format {}

@315157973
315157973 requested review from Anonymitaet and tuteng July 19, 2021 09:48
@Anonymitaet Anonymitaet added component/website doc Your PR contains doc changes, no matter whether the changes are in markdown or code files. labels Jul 19, 2021

@Anonymitaet Anonymitaet left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve from the language perspective.

@tuteng tuteng left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sijie sijie added this to the 2.9.0 milestone Jul 22, 2021
@sijie
sijie merged commit 87e2758 into apache:master Jul 22, 2021
Technoboy- pushed a commit to Technoboy-/pulsar that referenced this pull request Jul 22, 2021
Master Issue: apache#10041

### Motivation
The config object in the Service Discovery module has been annotated.
So the document can be automatically generated.
But this module and Pulsar proxy module both depend on broker-common, so we need to move the common CMD to the common module, otherwise we need to copy the code.

### Modifications
1) Move common CMD to broker-common
2) Add unit test for  Service Discovery
bharanic-dev pushed a commit to bharanic-dev/pulsar that referenced this pull request Mar 18, 2022
Master Issue: apache#10041

The config object in the Service Discovery module has been annotated.
So the document can be automatically generated.
But this module and Pulsar proxy module both depend on broker-common, so we need to move the common CMD to the common module, otherwise we need to copy the code.

1) Move common CMD to broker-common
2) Add unit test for  Service Discovery
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Your PR contains doc changes, no matter whether the changes are in markdown or code files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants