Quantcast
Channel: CodeSection,代码区,数据库(综合) - CodeSec
Browsing all 6262 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

记一次 Redis 规模化运维讨论会(含 PPT)

7月29日下午,在滴滴,有幸邀请到了业界的一些同学,一起就「redis规模化运维」踩过的坑和最佳实践,做了深入的讨论和交流。知识是无价的,分享却是无私的,非常感谢各位朋友们的参与。「世上本没有路,填的坑多了,便成了路」共勉。 滴滴codis集群运维实践 主讲人:曾凡禹、刑惺...

View Article


Image may be NSFW.
Clik here to view.

使用 MongoDB 为 Rails 项目搭建图片服务器

在使用 MongoDB 搭建图片服务器之前,我们首先需要准备一个 Rails 项目,demo 代码在 https://github.com/baya/mongo_image_demo , 与图片服务器的交互将在此 demo 项目中实现。 1 安装和配置 nginx-gridfs 我们存取图片的请求首先经过 nginx, 然后再通过 nginx-gridfs 转到 mongodb, 所以配置...

View Article


Image may be NSFW.
Clik here to view.

redis-py源码分析

本文会简述该库的代码组织架构,会着重介绍它实现的连接池ConnectPoll以及如何实现的线程、进程安全。 文件结构 . ├── __init__.py ├── _compat.py 兼容性 ├── client.py 实现客户端,调用connectionpool ├── connection.py 实现连接池,连接,解析器 ├── exceptions.py 异常类 ├── lock.py...

View Article

Image may be NSFW.
Clik here to view.

SQL高级教程(二)

别名通过使用 SQL,可以为表名称或列名称指定别名。 基本上,创建别名是为了让列名称的可读性更强。列的别名语法SELECT column_name AS alias_name FROM table_name;表的别名语法SELECT column_name(s) FROM table_name AS alias_name;演示数据库 在本教程中,我们将使用 RUNOOB 样本数据库。 下面是选自...

View Article

Image may be NSFW.
Clik here to view.

关系型数据库基础总结

关系型数据库管理系统简介 数据库的集中式控制有如下优点: 1.降低数据存储的冗余度 2.更高的数据一致性 3.存储的数据可以共享 4.便于维护数据完整性 5.能够实现数据的安全性 数据在数据库中的存储形式 1.层次模型 2.网状模型 3.关系模型 4.对象模型 关系型数据库的基本概念 关系模型把世界是由实体和联系组成的。 实体就是指在现实世界中客观存在并可相互区别的事物。...

View Article


Image may be NSFW.
Clik here to view.

Synchronizing Containers

Introduction In the project I am currently working we are using Docker in all environments, that is development, CI, staging and production. The technology stack is based on python with Django, mysql...

View Article

20年资深Oracle数据库专家:国内应用级DBA的缺失

作者介绍 罗敏,从事 Oracle 技术研究、开发和服务工作20余年,在Oracle中国公司的10多年,分别在顾问咨询部、技术服务部担任资深技术顾问。曾参与国内银行、电信、政府等多个行业大型IT系统的建设和运维服务工作,为国内主要软件开发商和集成商进行过多场Oracle高级技术应用培训和交流活动。著有书籍《品悟性能优化》、《感悟Oracle核心技术》、《Oracle数据库技术服务案例精选》。 1、...

View Article

Image may be NSFW.
Clik here to view.

在 Azure 虚拟机上快速搭建 MongoDB 集群

目前Azure1元试用活动进行中,还没有申请的小伙伴赶紧先申请 1元试用的活动申请链接 https://www.azure.cn/pricing/1rmb-trial-website-hosting/?wt.mc_id=AzureThinkphpOnlineAdBOITrial0002011 NOTE: 说明目前脚本仅支持CentOS(6.5,6.6,6.7,7.0,7.1,7.2)。 准备步骤...

View Article


Image may be NSFW.
Clik here to view.

web 可用性监控工具 Urlooker

urlooker 监控web服务可用性及访问质量,采用go语言编写,易于安装和二次开发 Feature 返回状态码检测 页面响应时间检测 页面关键词匹配检测 带cookie访问 agent多机房部署,指定机房访问 检测结果支持向open-falcon推送 支持短信和邮件告警 Architecture ScreenShot Install 环境依赖 安装mysql & redis wget...

View Article


Image may be NSFW.
Clik here to view.

Zeppelin/Spark/Cassandra integration tutorial

In this post, I’ll cover in detail all the steps necessary to integrate Apache Zeppelin , Apache Spark and Apache Cassandra . If you are not familiar with Zeppelin, I recommend reading my introduction...

View Article

Image may be NSFW.
Clik here to view.

redis学习之集群报错Node is not empty

写在前面 继上一篇redis3.0.x集群搭建完成之后,当然要用客户端JedisCluster简单测试一下集群啦,这样就要将redis.conf里bind 127.0.0.1改成bind +真机ip(我的192.168.161.131),下面简单地将测试中遇到的问题及解决办法记录在本篇。 遇到的问题及解决办法 在redis.conf里bind...

View Article

MongoDB string字段索引策略

在研究MongoDB的索引是发现一个奇怪的问题,给一个string类型的field设置 text索引 ,但是在查询的时候并没有使用索引。比如: db.tomcat_access_logs.ensureIndex( { url : 'text' }); db.tomcat_access.logs.find( { url : '1' } ).explain();...

View Article

2016 年 8 月 5 日:中国节点存储系统中断约半小时的故障说明

8 月 5 日晚上 7 点 10 分开始,LeanCloud 中国节点上的某一缓存集群因为流量过大,CPU 资源被占满而停止了服务,从而导致数据存储及依赖它的服务(云引擎、推送、实时聊天)出现约半小时的中断,在此期间有部分应用可能会遇到请求无法完成的情况。详细报告如下。 故障节点和影响范围 只有中国节点出现了问题,受影响的服务与时间段列举如下,其他服务未受到影响。 服务名 区域 受影响时段 范围...

View Article


Image may be NSFW.
Clik here to view.

My Neo4j Summer Road Trip to the World of Healthcare [Part 3]

ByYaqi Shi, Developer Relations | August 8, 2016 Part 3: Cleaning CSV Files in Bash Hi friends and welcome back to my summer road trip through the world of healthcare. For those who are new to my...

View Article

Image may be NSFW.
Clik here to view.

白话大数据 | hadoop究竟是什么鬼

作者:吴大迪 本文由 微信公众号星环科技 授权发布,版权所有归作者,转载请联系作者! 不少读者反馈本号的内容太专业、太技术,虽然很想看懂点什么,但是满眼的专有名词,心累! 为了和广大吃瓜群众融为一体,我们特别推出了《白话大数据》系列,从此麻麻再也不用担心我看不懂啦,今天先推第一集《Hadoop究竟是个什么鬼》 所以充满了使命感的我们,是时候站出来解释一下了!! 1建立在大数据背景之下...

View Article


Image may be NSFW.
Clik here to view.

Notes on DataStax and Cassandra

I visited DataStax on my recent trip. That was a tipping point leading to my recent discussions ofNoSQL DBAs and misplaced fear of vendor lock-in . But of course I also learned some things about...

View Article

Image may be NSFW.
Clik here to view.

Latest AWS Elastic MapReduce release supports 16 Hadoop projects

AWS announced the release of Elastic MapReduce (EMR) 5.0.0 today, which includes among other things support for 16 open source Hadoop projects. As AWS continues to hone its various tools to help...

View Article


Image may be NSFW.
Clik here to view.

[译]LinkedIn如何解决信息流处理难题

原文: Stream Processing Hard Problems Part 1: Killing Lambda 译者:杰微刊兼职翻译张迪...

View Article

JSON.NET attributes and RavenDB

RavenDB becomes more and more popular among .NET developer. The simple to use C# Api makes it a good choice for many project that require a fast persistence layer. The JSON that is stored, can be...

View Article

What Every Accidental DBA Needs to Know Now: Backups

I’ll be presenting a session at the 2016 IT/Dev Connections Conference titled (some) of the Top 10 Things Every Accidental DBA Needs to Know . Why “some”? Because the list is actually endless it’s...

View Article
Browsing all 6262 articles
Browse latest View live