Giter Site home page Giter Site logo

mchmarny / dapr-demos Goto Github PK

View Code? Open in Web Editor NEW
167.0 8.0 47.0 10.11 MB

Collection of personal Dapr demos (bindings, state, pub/sub, service-to-service invocation)

Home Page: https://dapr.io

License: MIT License

Makefile 43.39% Go 39.63% Dockerfile 5.33% C# 1.21% CSS 2.14% JavaScript 2.95% HTML 2.05% Shell 3.32%
dapr pubsub service cron grpc rest

dapr-demos's Introduction

Dapr demos

Collection of personal Dapr demos.

Note, some of these demos require latest version of Dapr, Ingress gateway, Observability components, or cluster-local Redis and Mongo services. To create Kubernetes cluster with all these components on AKS, or quickly configure an existing cluster, consider the Dapr Cluster Setup utility.

Disclaimer

This is my personal project and it does not represent my employer. While I do my best to ensure that everything works, I take no responsibility for issues caused by this code.

License

This software is released under the MIT

dapr-demos's People

Contributors

mchmarny avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dapr-demos's Issues

keda scale up doesn't work despite large queue length lag

Example log

{"level":"debug","ts":1598799261.2208235,"logger":"kafka_scaler","msg":"Group autoscaling has a lag of 147410 for topic messages and partition 0\n"}
{"level":"debug","ts":1598799261.2208657,"logger":"scalehandler","msg":"Scaler for scaledObject is active","ScaledObject.Namespace":"default","ScaledObject.Name":"queue-outoscaling-scaler","ScaledObject.ScaleType":"deployment","Scaler":{}}
{"level":"debug","ts":1598799261.2310224,"logger":"scalehandler","msg":"ScaledObject's Status was properly updated","ScaledObject.Namespace":"default","ScaledObject.Name":"queue-outoscaling-scaler","ScaledObject.ScaleType":"deployment"}

This seems to be an issue with the HPA config (i.e. too old resource version)

W0830 14:54:22.057920       1 reflector.go:289] pkg/mod/k8s.io/[email protected]+incompatible/tools/cache/reflector.go:94: watch of *unstructured.Unstructured ended with: too old resource version: 1894736 (1894804)

There is a similar HPA issue being reported here

About "fan-out" demo

Should a config folder be under the "dapr-demos/fan-out/grpc-echo-service/" ? Thanks

Problem with grpc-echo-service

Hello, I am trying to complete the dapr-apim-integration demo, which depends on the grpc-echo-service docker image that you own.

When I run the demo as is, I get the error PostStartHookError: command '/daprd --wait' exited with 137

I have tried pulling the code for the image as you have defined in this repo (which appears more up-to-date than that in the quickstart docs) and building and deploying that I get the same error. Do you know why this may be?

Sorry if this isn't a real issue, just kinda puzzled and figured the original author might have more context than I do about the daprd process/error codes.

keda scale up doesn't work despite large queue length lag

Example log

{"level":"debug","ts":1598799261.2208235,"logger":"kafka_scaler","msg":"Group autoscaling has a lag of 147410 for topic messages and partition 0\n"}
{"level":"debug","ts":1598799261.2208657,"logger":"scalehandler","msg":"Scaler for scaledObject is active","ScaledObject.Namespace":"default","ScaledObject.Name":"queue-outoscaling-scaler","ScaledObject.ScaleType":"deployment","Scaler":{}}
{"level":"debug","ts":1598799261.2310224,"logger":"scalehandler","msg":"ScaledObject's Status was properly updated","ScaledObject.Namespace":"default","ScaledObject.Name":"queue-outoscaling-scaler","ScaledObject.ScaleType":"deployment"}

This seems to be an issue with the HPA config (i.e. too old resource version)

W0830 14:54:22.057920       1 reflector.go:289] pkg/mod/k8s.io/[email protected]+incompatible/tools/cache/reflector.go:94: watch of *unstructured.Unstructured ended with: too old resource version: 1894736 (1894804)

There is a similar HPA issue being reported here

Dapr Helm deployment with tag errs on RC

After deploying Dapr using Helm

helm install dapr dapr/dapr -n dapr-system \
		--set global.tag=1.0.0-rc.1 \
		--set global.logAsJson=true \
		--set global.ha.enabled=true

On deployments with dapr enabled annotations, the deployment or replica set fails on start

message: 'admission webhook "sidecar-injector.dapr.io" denied the request: invalid
app id: a lowercase RFC 1123 label must consist of lower case alphanumeric characters
or ''-'', and must start and end with an alphanumeric character (e.g. ''my-name'',  or
''123-abc'', regex used for validation is ''[a-z0-9]([-a-z0-9]*[a-z0-9])?'')'

Applying deployment/kafka-pubsub.yaml with a specification validation error

Hi, I'm experimenting with the autoscaling-on-queue example and I got the following error when I got to step Deployment

~# kubectl apply -f deployment/kafka-pubsub.yaml

error: error validating "deployment/kafka-pubsub.yaml": error validating data: ValidationError(Component.spec): missing required field "version" in io.dapr.v1alpha1.Component.spec; if you choose to ignore these errors, turn validation off with --validate=false

Should it be changed to this?

apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
  name: autoscaling-pubsub
spec:
  version: v1
  type: pubsub.kafka
  metadata:
    - name: brokers
      value: kafka-cp-kafka.kafka.svc.cluster.local:9092
    - name: authRequired
      value: "false"
    - name: allowedTopics
      value: metric
    - name: consumerID
      value: autoscaling-subscriber

thk.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.