EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB484387: Configure Community Connectors in a cluster environment


Zhen Yao

Software Engineer, Senior • MicroStrategy


This article provides solutions to configure cluster environments for Community Connectors. Since the storage of OAuth application information (Client id, Client secret, redirect URI, and so on) changes since m2021, the solutions are different for m2021 and versions before m2021.

Configure a cluster environment for Community Connectors prior to Strategy 2021

Description 


In a single node environment, when following the product documentation for configuring and deploying Community Connectors, the configurations are correctly set and the connectors are ready to use. However, when repeating the steps in a cluster environment, only one node of the Community Connectors Server is configured and it is unsure which one. Hence, you may still encounter errors telling you that the configuration is not set.

 

Why is this happening? 


The configurations of all Community Connectors are stored as a

JSON
file in the Web Server. While deploying the connectors in a cluster environment, we can’t identify the target node in which the configurations are saved. Therefore, by configuring the connector once, only one node is correctly set.

 

Solution 

Manually copy the target

config.json
file from to each node of the cluster. The config.json file is located under
CommunityConnectors/[connector name]/config.json
.

  • Find the correctly configured
    config.json
    . A correctly configured connector should have the field filled for the
    value
     key under a parameter node like
    redirect_uri
     or
    client_id 
    and
    client_secret
    , etc.
ka04W000001EtX0QAK_0EM4W000001KZrL.jpeg
  • Copy the file to each node of the cluster and replace the un-configured file with this one.

Configure a cluster environment for Community Connectors starting in Strategy 2021

Description 

Starting in Strategy 2021, when following the product documentation for configuring and deploying Community Connectors, the OAuth Application information is stored into MD of I-Server, instead of the Configuration files in Community Connectors. Since the information is no longer stored in Community Connectors, there is no need to modify the JSON configuration file for each connector (starting in Strategy 2021). 

Solution 


A separate file,

cluster.properties
, is provided for configuring cluster properties for Community Connectors. 

  • Choose any Community Connector node and find the configuration file from
    CommunityConnectors/WEB-INF/classes/cluster.properties
    . 
  • Edit the configuration file to enable cluster mode and provide a synchronizedID for the cluster. All Community Connectors in the same cluster should share the same synchronizedID. It is recommended to use a random string containing more than 10 characters for the value.
    Note: For m2021GA, you will see “cluster.password“ instead of “cluster.synchronizedID“ in the configuration file. To avoid misleading users to put their passwords in the configuration file. We change it to synchronizedID in a later release.
ka04W000001EtX0QAK_0EM4W0000027A23.jpeg
  • Copy and replace the configuration file
    cluster.properties
    to other nodes.
  • Restart all Community Connectors in the cluster.
  • Each time after the re-deployment or upgrade of Community Connectors, users should re-configure the above file.

Related Documentation 

Configure Connectors on the Setup Page ​​​​​
Deploy Connectors to MicroStrategy Web  


Comment

0 comments

Details

Knowledge Article

Published:

July 8, 2020

Last Updated:

January 21, 2021