People Attribute

License

NFFS-PA

This analytic is GPU-based please ensure you meet the minimum requirement.

Setup for Deployment

Docker-compose.yml config

version: '3.3'
services:
  node1:
    image: "${ANALYTIC_IMAGE}"
    runtime: nvidia
    pid: host
    network_mode: host
    cap_add:
      - SYS_PTRACE
    command: [
      httpserver,
      --listen-port, "${ANALYTIC_LISTEN_PORT}",
      --listen-port-monitoring, "${ANALYTIC_LISTEN_PORT_MONITORING}",
      --verbose,
    ]
    healthcheck:
      test: ["CMD", "curl", "-f", "http://0.0.0.0:${ANALYTIC_LISTEN_PORT}/healthcheck"]
      interval: 10s
      timeout: 3s
      retries: 30
  coordinator:
    image: "${ANALYTIC_IMAGE}"
    runtime: nvidia
    pid: host
    network_mode: host
    cap_add:
      - SYS_PTRACE
    command: [
      coordinator,
      --access-key, "${NODEFLUX_ACCESS_KEY}",
      --secret-key, "${NODEFLUX_SECRET_KEY}",
      --deployment-key, "${NODEFLUX_DEPLOYMENT_KEY}",
      --listen-port, "${COORDINATOR_LISTEN_PORT}",
      --listen-port-monitoring, "${COORDINATOR_LISTEN_PORT_MONITORING}",
      --config-path, "/etc/nodeflux/config.yml",
      --verbose,
    ]
    volumes:
      - ${PWD}/config.yml:/etc/nodeflux/config.yml
    depends_on:
      node1:
        condition: service_healthy
  prometheus:
    image: prom/prometheus
    network_mode: host
    pid: host
    volumes:
      - ${PWD}/prometheus.yml:/etc/prometheus/prometheus.yml

config.yml setting:

version: "v1"
nodes:
- address: "0.0.0.0:4021"
  analytic_id: "NFFS-PA"

Run the Docker Compose by following these steps:

export ANALYTIC_IMAGE=registry.gitlab.com/nodefluxio/cloud/analytics/pipelines/people-attribute-pipeline:1.1.1-cuda11.8
export NODEFLUX_ACCESS_KEY=<nodeflux access key>
export NODEFLUX_SECRET_KEY=<nodeflux secret key>
export NODEFLUX_DEPLOYMENT_KEY=<nodeflux deployment key>

export COORDINATOR_LISTEN_PORT=4004
export COORDINATOR_LISTEN_PORT_MONITORING=5004

export ANALYTIC_LISTEN_PORT=4021
export ANALYTIC_LISTEN_PORT_MONITORING=5021
docker-compose up -d --build

Last updated