Comments (3)
设计
为了性能考虑,aswan系统的日志是先写到redis中,在由另外的进程进行消费及持久化(存储到mysql中),另外由于MOMO风控系统的请求量很大,因此在拦截日志持久化的时候进行了按天分表。
代码
问题解释
aswan系统分表时使用的模式如下
table_name = f"hit_log_{date_obj.strftime('%Y%m%d')}"
很容易理解,hit_log_20190729 存储2019年7月29日的拦截日志。
log_manage_hitlogmodel表则是在升级python3后,建表错误导致的非预期的表,具体修复PR可见 #20 。
from aswan.
log_manage_hitlogmodel表则是在升级python3后,建表错误导致的非预期的表,这个修复方案什么时候给说下
from aswan.
已经修复了,目前已经不会在生成这个表了,PR 可见 #20 。
from aswan.
Related Issues (20)
- KeyError: 'user_id'导致拦截日志持久化进程异常终止 HOT 3
- 规则配置内 strategy_index 为 0 的情况阈值将无法修改 HOT 3
- 存储接口的暴露 HOT 1
- 测试 HOT 1
- 风控报# HOT 1
- 请问如何自动维护黑名单? HOT 1
- 系统性能估计会是个问题(qps高的接口如果要qurey查询是否命中的场景) HOT 1
- cannot set options after executing query HOT 1
- Need help on translation HOT 6
- 有沟通微信群吗? HOT 4
- 模板嵌套之后值拿不到 HOT 2
- 是否可以提供docker镜像 HOT 2
- source的处理逻辑似乎有点问题 HOT 8
- 请问首次命中规则之后,再次请求query接口。接口还是返回被风控,这种怎么处理? HOT 6
- 弱弱的问一句,readme里面的图片都挂了 HOT 1
- docker-compose 启动后,登录有户名密码 HOT 1
- docker-compose 部署的时候 app_python_1这个镜像启动不了 HOT 1
- 前端部分没有开源吗?启动起来似乎只有接口 HOT 2
- docker能换一个端口吗? HOT 1
- 请问该项目还会继续维护吗
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.
from aswan.