MicroStrategy ONE

높은 처리량 또는 고급 아키텍처 구성

이 주제는 Kafka 노드(텔레메트리 서버)의 클러스터를 사용하여 고처리량 아키텍처를 구성하는 방법을 설명합니다. 1개의 텔레메트리 저장소(플랫폼 분석)는 단일 Kafka 노드 또는 단일 Kakf 클러스터의 데이터만 사용할 수 있습니다.

모든 Kafka 노드는 클러스터에 있어야 하며 여러 Kafka 클러스터는 지원되지 않습니다.

다음 주제로 시작하십시오.

1.1. 구성 요소 설치

2.2. Telemetry Server 구성

3.3. 필요한 서비스 다시 시작

4.4. Platform Analytics 소비자 구성

1. 구성 요소 설치

먼저 해당 환경에 구성 요소를 설치하십시오.

  1. 설치 마법사에서 시스템 1, 2, 3에 대해 다음 구성 요소를 선택합니다.

    • MicroStrategy Intelligence

    • MicroStrategy Telemetry Server

    • 선택클러스터 만들기...텔레메트리를 위한 클러스터된 환경을 생성하는 동안 텔레메트리를 설치했거나 설치할 다른 노드 또는 시스템 주소를 제공합니다. 시스템 1, 2, 3에 대해 이 작업을 반복합니다.

  2. 설치 마법사에서 시스템 4 및 5에 대해 다음 구성 요소를 선택합니다.

    • MicroStrategy Intelligence

    • MicroStrategy Telemetry Server

  3. 설치 후 MicroStrategy Telemetry Server(kafka 및 Zookeeper 서비스)를 끄십시오.
  4. 설치 마법사에서 시스템 6에 대해 다음 구성 요소를 선택합니다.

    • Platform Analytics

    • 구성 요소 설치 중에 저장소(시스템 7) 연결 정보를 입력해야 합니다.

  5. 시스템 7에 Platform Analytics 저장소를 설치합니다. 즉시 사용 가능한 MicroStrategy 저장소를 선택하거나 의 자체 인스턴스를 선택할 수 있습니다. PostgreSQL 데이터베이스 서버 , 에서 제공 조직.

  6. Windows 배포의 경우 계속 Platform Analytics 서비스를 만들기 위한 Windows 특정 수정 , 아니면 다음으로 이동2. Telemetry Server 구성을(를) 제공합니다.

Platform Analytics 서비스를 만들기 위한 Windows 특정 수정

Windows 시스템에서 서비스가 중단되는 것을 방지하려면 Platform Analytics 서비스를 다시 생성해야 합니다.

  1. 서비스로 이동합니다.

    1. MicroStrategy Platform Analytics 소비자를 중지하십시오.

    2. MicroStrategy Platform Analytics 인 메모리 캐시를 중지하십시오.

  2. MicroStrategy Platform Analytics 소비자 서비스를 삭제합니다.

    1. 관리 권한으로 Windows 명령 프롬프트를 시작합니다.

    2. 다음 명령을 실행합니다.

      복사
      sc delete MSTR_PlatformAnalyticsConsumer
    3. 서비스를 닫습니다.

  3. Platform Analytics 소비자 서비스를 다시 만듭니다.

    1. Platform Analytics 디렉터리로 이동합니다.

    2. 열기 MSTR_PlatformAnalyticsConsumer.config 을(를) 클릭합니다.

    3. 삭제 --DependesOn =Redis 종속 서비스(kafka 및 Zookeeper)를 제거합니다.

  4. 관리 권한으로 Windows 명령 프롬프트를 시작합니다.

    1. Platform Analytics 디렉터리로 이동합니다.

    2. 다음 명령을 실행합니다.

      복사
      PlatformAnalyticsConsumer.exe install MSTR_PlatformAnalyticsConsumer --Config PlatformAnalyticsConsumer_config.txt
  5. 서비스로 이동합니다.

    1. MicroStrategy Platform Analytics Consumer를 시작합니다.

    2. 필요한 경우 Service Manager를 새로 고칩니다.

2. Telemetry Server 구성

에 대해 아래 단계 수행모두 Telemetry Server 노드 이 예은(는) 시스템 1, 2, 3을 사용합니다.

Server.properties 편집

  1. 열기 server.properties 을(를) 클릭합니다.

    Windows 위치:

    C:\Program Files (x86)\MicroStrategy\Messaging Services\Kafka\kafka_x.x.xx\config

    Linux 위치:

    /opt/MicroStrategy/MessagingServices/Kafka/kafka_x.x.x./config

  2. 아래 ##### Server Basics ####인 경우, 노드 페일오버의 기본 설정 순서로 각 Telemetry Server 시스템에 고유한 중개인 ID를 제공합니다.

    이 예에서:

    시스템 1: broker.id=1
    시스템 2: broker.id=2
    시스템 3: broker.id=3

    복사
    # Set the broker id to a unique value for each node. 
    # Do not change it on the machine configured during single node set up, i.e. your main node. It should be left at the default value and referred to by the other nodes.
    # For example,

    broker.id=1
  3. 아래 ##### Internal Topic Settings ####, 오프셋과 트랜잭션 상태 요인을 모두 클러스터의 노드 수로 설정합니다. 이 예에서 이는 3입니다.

    복사
    # offsets.topic.replication.factor= set to the number of nodes in your cluster
    # transaction.state.log.replication.factor= set to the number of nodes in your cluster
    # For example,

    offsets.topic.replication.factor=3
    transaction.state.log.replication.factor=3
  4. 아래 ##### Zookeeper #####, 에 대한 모든 Telemetry Server 노드 IP 주소 또는 FQDN을 추가합니다. zookeeper.connect 매개 변수. 노드 순서는 중개인 ID와 일치해야 합니다.   2단계에서 매개 변수를 만듭니다.

    복사
    # Set zookeeper.connect= to a comma separated list of <IP address:2181> for all nodes in the cluster.
    # For example, 

    zookeeper.connect=10.27.18.73:2181,10.27.18.224:2181,10.27.36.168:2181

Zookeeper.properties 편집

  1. 열기 zookeeper.properties 을(를) 클릭합니다.

    Windows 위치:

    C:\Program Files (x86)\MicroStrategy\Messaging Services\Kafka\kafka_x.x.xx\config

    Linux 위치:

    /opt/MicroStrategy/MessagingServices/Kafka/kafka_x.x.x./config

  2. 다음을 사용하여 파일의 끝에 새 줄 추가 server.node_id=ip:2888:3888. 이 예에서는 각 노드에 대한 3개의 새 선이 있습니다.

    복사
    # To allow Zookeeper to work with the other nodes in your cluster, add the following properties to the end of the zookeeper.properties file.
    # initLimit=5
    # syncLimit=2
    # server.X= <IP address of the node>:2888:3888
    # When adding this property, replace X above with the broker.id for the node being referenced. A separate entry must be made for each node in the cluster.
    # For example,

    initLimit=5
    syncLimit=2
    server.0=10.27.18.73:2888:3888
    server.1=10.27.18.224:2888:3888
    server.2=10.27.36.168:2888:3888

내 ID 편집

  1. 열기 myid 을(를) 클릭합니다. 이 파일이 존재하지 않는 경우 생성해야 합니다.

    Windows 위치:

    C:\Program Files (x86)\MicroStrategy\Messaging Services\tmp\zookeeper

    Linux 위치:

    /opt/MicroStrategy/MessagingServices/tmp/zookeeper

  2. 확인 myid 파일아님에 숨겨진 확장 프로그램이 있습니다. 파일 탐색기에서 이동보기 > 표시 > 파일 이름 확장자을(를) 클릭하여 확장 프로그램을 표시합니다. 파일에 확장자가 있는 경우 제거하십시오.

  3. 다음을 확인하십시오. broker.id 각 노드 일치에 대해에 설정한 값 server.properties.

    복사
    # Make sure the broker.id is the same as it appears in server.properties.
    # For example,

    broker.id=1

3. 필요한 서비스 다시 시작

클러스터의 모든 노드에서 Kafka 및 Zookeeper 구성을 업데이트한 후에는 Intelligence Server를 포함하여 서비스를 다시 시작해야 합니다.

서비스를 다시 시작할 때에는 모든 구성 파일 변경을 먼저 완료하는 것이 중요합니다. 예를 들어, 2개의 추가 Kafka 노드를 추가하고 1개의 기존 노드가 있는 경우 서비스를 다시 시작하기 전에 3개의 노드에서 모두 설치 및 구성을 완료해야 합니다.

또한 일부 서비스는 서로 종속되어 있으므로 서비스를 아래에 제공된 순서로 시작해야 합니다. 이 순서로 시작하지 않으면 서비스에 불일치가 발생할 수 있습니다.

  1. 다른 노드를 시작하기 전에 주 노드에서 Zookeeper 및 Kafka를 시작합니다.

  2. 나머지 노드에서 Zookeeper를 시작합니다.

  3. 나머지 노드에서 Kafka를 시작합니다.

4. Platform Analytics 소비자 구성

Platform Analytics 소비자를 실행하는 노드에서 다음 단계를 수행합니다. 이 예에서는 시스템이 6입니다.

  1. 열기 PAConsumerConfig.yaml 을(를) 클릭합니다.

    Windows 위치:

    C:\Program Files (x86)\MicroStrategy\Platform Analytics\conf

    Linux 위치:

    /opt/MicroStrategy/Platform Analytics/conf

  2. 다음 형식을 사용하여 모든 텔레메트리 노드 IP 주소를 파일에 추가합니다.

    zookeeperConnection:IP1:port,IP2:port,IP3:port

    bootstrap.servers: IP1:port,IP2:port,IP3:port

    복사
    # Set kafkaTopicNumberOfReplicas: number of nodes in cluster
    # Set zookeeperConnection: <ipAddress:2181> for all nodes in cluster
    # Set bootstrap.servers: <ipAddress:9092> for all nodes in cluster
    # For example,

    kafkaTopicNumberOfReplicas: 3
    zooKeeperConnection: 10.27.18.73:2181,10.27.18.224:2181
    bootstrap.servers: 10.27.18.73:9092,10.27.18.224:9092
  3. 다음인지 확인 kafkaTopicNumberOfReplicas 매개 변수는 Telemetry Server 노드의 수와 일치합니다. 이 예에서는 이는 3입니다.

  4. 다음 서비스를 다시 시작합니다.

    • MicroStrategy Platform Analytics 소비자

    • MicroStrategy 플랫폼 분석 인 메모리 캐시