Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support HPA on memory resources #471

Closed
wenhaocs opened this issue Mar 8, 2024 · 1 comment
Closed

Support HPA on memory resources #471

wenhaocs opened this issue Mar 8, 2024 · 1 comment
Assignees
Labels
wip Progress: work in progress

Comments

@wenhaocs
Copy link

wenhaocs commented Mar 8, 2024

No description provided.

@MegaByte875 MegaByte875 self-assigned this Mar 12, 2024
@MegaByte875
Copy link
Contributor

apiVersion: autoscaling.nebula-graph.io/v1alpha1
kind: NebulaAutoscaler
metadata:
  name: nebula-autoscaler
spec:
  nebulaClusterRef:
    name: nebula
  graphdPolicy:
    minReplicas: 2
    maxReplicas: 10
    metrics:
    - type: Resource
      resource:
        name: cpu
        target:
          type: Utilization
          averageUtilization: 80
    - type: Resource
      resource:
        name: memory
        target:
          type: Utilization
          averageValue: 80
    - type: Object
      object:
        metric:
          name: nebula_graphd_num_queries_per_second
        describedObject:
          apiVersion: v1
          kind: Service
          name: nebula-exporter-svc
        target:
          type: Value
          value: 3k
    behavior:
      scaleDown:
        stabilizationWindowSeconds: 300
        policies:
        - type: Percent
          value: 100
          periodSeconds: 15
      scaleUp:
        stabilizationWindowSeconds: 0
        policies:
        - type: Percent
          value: 200
          periodSeconds: 15
        - type: Pods
          value: 4
          periodSeconds: 15
        selectPolicy: Max
  pollingPeriod: 30s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wip Progress: work in progress
Projects
None yet
Development

No branches or pull requests

2 participants