harinirajendran opened a new pull request #10679:
URL: https://github.com/apache/druid/pull/10679


   In this PR I have added example config files that can be used to spin up the 
indexer process. And have also added the `status/selfDiscovered` endpoint to 
indexer which we use as readiness probe for indexer in our indexer process's 
docker config.
   
   Testing
   Built my own docker image, added the following in `docker-compose.yml` file
   ```
   +  indexer:
   +    image: apache/druid:harini
   +    container_name: indexer
   +    volumes:
   +      - ./storage:/opt/data
   +      - middle_var:/opt/druid/var
   +    depends_on:
   +      - zookeeper
   +      - postgres
   +      - coordinator
   +    ports:
   +      - "8092:8092"
   +    command:
   +      - indexer
   +    env_file:
   +      - environment
   +
   ```
   
   Brought all the services up
   ```
   hrajendran@Harini-Rajendran's-MBP16 docker % docker-compose up -d
   Creating network "docker_default" with the default driver
   Creating postgres  ... done
   Creating zookeeper ... done
   Creating coordinator ... done
   Creating indexer       ... done
   Creating router        ... done
   Creating broker        ... done
   Creating historical    ... done
   Creating middlemanager ... done
   hrajendran@Harini-Rajendran's-MBP16 docker % docker ps
   CONTAINER ID        IMAGE                 COMMAND                  CREATED   
          STATUS              PORTS                                    NAMES
   d4adafa2d20b        apache/druid:harini   "/druid.sh broker"       21 
minutes ago      Up 21 minutes       0.0.0.0:8082->8082/tcp                   
broker
   23d2d9dab52a        apache/druid:harini   "/druid.sh middleMan…"   21 
minutes ago      Up 21 minutes       0.0.0.0:8091->8091/tcp                   
middlemanager
   4af88a4f819b        apache/druid:harini   "/druid.sh historical"   21 
minutes ago      Up 21 minutes       0.0.0.0:8083->8083/tcp                   
historical
   8247c53aff87        apache/druid:harini   "/druid.sh router"       21 
minutes ago      Up 21 minutes       0.0.0.0:8888->8888/tcp                   
router
   664d268118dd        apache/druid:harini   "/druid.sh indexer"      21 
minutes ago      Up 21 minutes       0.0.0.0:8092->8092/tcp                   
indexer
   07ffca0bc593        apache/druid:harini   "/druid.sh coordinat…"   21 
minutes ago      Up 21 minutes       0.0.0.0:8081->8081/tcp                   
coordinator
   b16704e3ee3d        postgres:latest       "docker-entrypoint.s…"   22 
minutes ago      Up 21 minutes       5432/tcp                                 
postgres
   9a61879c560e        zookeeper:3.5         "/docker-entrypoint.…"   22 
minutes ago      Up 21 minutes       2181/tcp, 2888/tcp, 3888/tcp, 8080/tcp   
zookeeper
   ```
   
   Made `status/selfDiscovered` curl call to indexer running on port 8092 and 
got back 200 OK.
   ```
   hrajendran@Harini-Rajendran's-MBP16 docker % curl -v 
http://localhost:8092/status/selfDiscovered
   *   Trying ::1...
   * TCP_NODELAY set
   * Connected to localhost (::1) port 8092 (#0)
   > GET /status/selfDiscovered HTTP/1.1
   > Host: localhost:8092
   > User-Agent: curl/7.64.1
   > Accept: */*
   > 
   < HTTP/1.1 200 OK
   < Date: Mon, 14 Dec 2020 17:09:49 GMT
   < Content-Type: application/json
   < Vary: Accept-Encoding, User-Agent
   < Content-Length: 0
   < 
   * Connection #0 to host localhost left intact
   * Closing connection 0
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@druid.apache.org
For additional commands, e-mail: commits-h...@druid.apache.org

Reply via email to