-
π± Iβm currently interested in DevSecOps (providing high quality and secure software rapidly)
-
π I regularly write articles on https://qiita.com/kanata333
-
π Know about my experiences https://job-draft.jp/user/resume
fastapi-example's Introduction
fastapi-example's People
fastapi-example's Issues
Manage Prometheus with Prometheus operator
Add LivenessProbe and ReadinessProbe
Introduce metric-server
Implement POST feature
Enable Google auth for Argo CD
Can't store memo in Japanese
When I try to save the memo in Japanese, I got an internal server error.
Log of fastapi
2021-05-27 02:18:56 [ post_new_note] Create a new note: {'title': 'θ²·γη©', 'description': 'γ³γΌγ©γθ²· γ'}
2021-05-27 02:18:56 [ __make_connection_to_db] Create a new connection
2021-05-27 02:18:56 [ __make_connection_to_db] The connection is successfully established
2021-05-27 02:18:56 [ execute_commit_query] Executing query...
2021-05-27 02:18:56 [ __close_connection] Close the connection
2021-05-27 02:18:56 [ execute_commit_query] Error occurred while commting query: (1366, "Incorrect string value: '\\xE8\\xB2\\xB7\\xE3\\x81\\x84...' for column 'title' at row 1")
2021-05-27 02:18:56 [ post_new_note] Error occurred while creating a note: (1366, "Incorrect string value: '\\xE8\\xB2\\xB7\\xE3\\x81\\x84...' for column 'title' at row 1")
2021-05-27 02:18:56 [ send] 172.24.0.1:56904 - "POST /notes HTTP/1.1" 500
Try other libraries for Prometheus
Deploy the application with several nodes
Why
For high availability
What
Change deployment.yaml
of the applications to deploy them across the nodes
Use sealed secret
Why
It's not good practice to set credentials as configmap
What
Use sealed secret to manage secret
Bundle environment variables in `docker-compose.yaml`
Use `fastapi.status` library
Use the same log configs
Try HPA
Add endpoint for health check
Change `kind` of Prometheus from `Deployment` to `StatefulSet`
Correct metrics
For application monitoring, the following metrics are useful
- The number of running applications
- The number of requests
- The number of 4xx errors
- The number of 5xx errors
- The time to process requests (latency)
Implement PUT feature
Implement Google OAuth
Why
- Users can use an application more easily
What
Expose Argo CD with ingress
Introduce ELK for application logging
Deploy front-end app on Kubernetes
Create Docker file for vue
Prepare local environments for monitoring
Introduce ORM
Introduce SchemaHero for GitOps of database and schema
Count log level
Why
To monitor the applications
What
- Count log level
- Expose the metrics
- See the metrics with Grafana
Use `service_healthy` condition for checking whether MySQL containers are ready
Implement DELETE feature
Make release flow
Introduce CI for Kubernetes YAML files
Implement login system
Manage MySQL users with git
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.