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

Mysql loadGen for Dmaas schedule #797

Open
bhaskarhc opened this issue Jul 10, 2020 · 4 comments
Open

Mysql loadGen for Dmaas schedule #797

bhaskarhc opened this issue Jul 10, 2020 · 4 comments
Assignees

Comments

@bhaskarhc
Copy link
Contributor

bhaskarhc commented Jul 10, 2020

Short Description :

  • Generate Load on MySQL application to test Dmaas schedule .
@bhaskarhc
Copy link
Contributor Author

Written python script to generate load on mysql by creating tables and appending rows in the table ,
Repo : https://github.com/mayadata-io/oep-e2e-aws/tree/test-mysql-load

@bhaskarhc
Copy link
Contributor Author

bhaskarhc commented Jul 10, 2020

Facing issue on connecting MySQL and loadgen-app in GitLab pipeline.

Screenshot 2020-07-10 at 2 56 42 PM

GitLab pipeline result

Screenshot 2020-07-10 at 2 45 09 PM

@bhaskarhc
Copy link
Contributor Author

bhaskarhc commented Jul 10, 2020

Succssfully Running loadGen-app in kubernetes cluster when running as pod .

Screenshot 2020-07-09 at 4 26 04 PM

loadGen-app Deployment yaml

---
apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: mysql-load-gen-app
  name: mysql-load-gen-app
  namespace: default
spec:
  replicas: 1
  selector:
    matchLabels:
      app: mysql-load-gen-app
  template:
    metadata:
      labels:
        app: mysql-load-gen-app
    spec:
      containers:
      - env:
        - name: MYSQLHOST
          value: "wordpress-mysql.mysql-dmaas-jiva"
        - name: MYSQLUSER
          value: "root"
        - name: DBPASS
          value: "mayadatae2e"
        - name: DBNAME
          value: "postgres"
        name: mysql-load-gen-app
        image: bhaskarjb/mysqlload:01
        imagePullPolicy: Always
        ports:
          - containerPort: 3000
            protocol: TCP
      restartPolicy: Always
---
apiVersion: v1
kind: Service
metadata:
  labels:
    app: mysql-load-gen-app
  name: mysql-load-gen-app
  namespace: default
spec:
  ports:
  - name: mysql-load-gen-app
    port: 3000
    protocol: TCP
    targetPort: 3000
    nodePort: 30002
  selector:
    app: mysql-load-gen-app
  type: NodePort

@bhaskarhc
Copy link
Contributor Author

@harshshekhar15 @AmitKumarDas @atulabhi
Need your help to run loadGen script on pipeline . 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant