1先说下多应用部署的事:

How do I setup Piwik to

track multiple websites, without showing the same common Piwik

server URL in the Javascript code in all the websites tracked by

this same Piwik server?

By default, the Piwik

Javascript code on all tracked websites contains the Piwik server

URL. This is fine for most users, but someone (eg. a competitor)

could run a script that would look at thousands or millions of

websites and search for your Piwik server URL in the source code of

these websites. This person could then find out all websites

tracked in your Piwik instance.

In some cases you might want to hide this Piwik URL completely

while still tracking all websites in your Piwik instance. It is

possible to do by modifying your Piwik Javascript code, and point

it to a "proxy piwik.php script" instead of your Piwik server URL.

This piwik.php script has to be uploaded on each of the websites

tracked, and will automatically "forward" all requests to your

secret Piwik server.

All documentation on how to

install this script is found in the script itself. Click here to view the instructions.

Follow the instructions

carefully and you

will then have all your websites tracked without revealing your

common Piwik URL, ensuring that nobody can find out the websites

tracked by Piwik!

他这个是官方对多个应用部署piwik的时候,采用的方案。看起来不错,但是每个应用都是都需要有php环境。(The

website to track must run on a server with PHP5

support)。

我的解决方案是:每台应用服务器修改host文件。Host对应piwik的内网ip地址。

这样有个小问题:piwik必须和所有的应用都部署在同一个机房。

2在说说大负载情况

Does Piwik work in a load

balanced environment? How do I setup Piwik for high scale

tracking?

There are many Piwik power

users using Piwik to track more than 200k pages per day, and use

Piwik to track thousands of websites, using simple

& more advanced setup. See this forum thread

for more details (feel free to post there if you are tracking more

than 100k pages per day!).

If you want to provide high

reliability and performance in your Piwik setup, you can load

balance Piwik services on various servers. It is pretty easy to

do so, but make sure you read the following documentation.

Piwik stores all tracking data, reports, users, settings, etc. in

the shared mysql database.

Piwik also uses files:

1) config/config.ini.php is used by every request to Piwik. It

contains db access, plugins enabled, various settings, etc.

This file must be synched on every Piwik server.

2) tmp/* contains temporary and cached files such as: compiled

templates, generated PDFs, tracking caches, etc.

This directory tmp/ content can be safely deleted and Piwik will

automatically recompile templates and recreate caches.

3) by default, Piwik uses file session storage, which are usually

stored in tmp/sessions, or in the global sessions directory (see

php.ini).

There is a config setting to enable database session storage,

see this

faq

When Piwik is used behind a

load balancer, here are the things to check:

1) synchronize config/config.ini.php on all servers - make

sure it is always the same everywhere.

2) delete the content in tmp/* on every new deploy (eg. when

upgrading Piwik or making plugin upgrades)

Piwik should then work as

expected in a load balanced environment.

For example, a common way to

load balance Piwik on 3 servers: Load balancer in front of (2x)

webservers which are tracking/querying the (1x) Master mysql DB

server.

For further optimization, a (1x) UI webserver can be added, to

handle all API requests, UI requests, and run the cron

archiving. This server can also be doubled and load

balanced.

Typically, webserver boxes would be cheap to operate servers, and

the Master DB server would be bigger (eg. multiple cores, 8G

memory, fast disk access), which could scale to a certain point

(around 1M pages per day).

他给出的建议是:

3台机器

两台做web server。

为了更好的优化,再增加一台UI server,提供给咱们自己浏览以及运行定时程序。

另外

数据库要好点(例如,多核 8G内存

快速的磁盘访问)等

这样的配置可以支撑每天100万的pv量级

piwik服务器性能,piwik 大负载以及多域名监控隐藏piwik服务器原始域名解决方案...相关推荐

  1. 监控录像服务器性能要求,如何打造高性能的视频监控存储系统?(《中国安防》)...

    编者按:数字化视频监控涉及到海量录像采集.存储和是使用分析的过程.随着视频监控的不断发展,视频数字化.传输网络化.系统集成化.管理职能化,传统的视频安防系统逐步向IT化靠近,在这必然的市场趋势中,作为 ...

  2. 超静音服务器性能强,超静音办公室专用 戴尔T20微服务器评测

    [IT168 评测]微服务器在近期是一个非常热门的话题,如论是英特尔还是其他的解决方案供应商都有了不小的动作,也不断有新产品出现,当然这还是针对数据中心应用的领域.而在办公室当中,传统的塔式服务器依然 ...

  3. 服务器性能监测工具NMON下载及使用【Centos内核服务器资源监控】

    一.nmon下载使用|数据采集 1. NMON版本选择和下载 以Linux服务器为例,不同的操作系统内核需要选择对应版本的NMON安装包使用,首先查看被监控服务器内核版本.el7.x86_64:el7 ...

  4. Win300英雄服务器不显示,大神为你解决win7系统删除300英雄游戏的解决方案

    技术小编发觉操作系统在使用途中会有win7系统删除300英雄游戏的问题,当然听说还有一部分电脑爱好者不会搞定win7系统删除300英雄游戏这样的问题,因此小编接下来就为朋友们解说win7系统删除300 ...

  5. 服务器隐藏文件夹怎样打开,局域网文件如何设置隐藏?服务器隐藏文件夹的方法...

    在企业局域网共享文件服务器权限设置过程中,很多网管员都会遇到一个这样的问题:如何隐藏共享文件夹,尤其是对用户隐藏无权限访问的共享文件夹,便于保护共享文件夹的安全,防止未经授权或随意访问共享文件的行为. ...

  6. SQL Server大负载的生产环境下的性能优化:初识元数据优化

    相信朋友对SQL Server性能调优相关的知识或多或少都有一些了解.虽然说现在NOSQL相关的技术非常的火热,但是RMDB(关系型数据库)与NOSQL是并存的,并且适用在各种的项目中.在一般的企业级 ...

  7. 软考高级系统架构设计师论文系列三:论改进Web服务器性能的有关技术

    软考高级系统架构设计师论文系列三:论改进Web服务器性能的有关技术 一.摘要 二.缓存服务器和均衡负载设备 三.Web服务器配置 四.三层C/S软件结构设计 一.摘要 某大型图书馆数字化信息系统的设计 ...

  8. 性能测试分析与性能调优诊断--史上最全的服务器性能分析监控调优篇

    来源: https://www.cnblogs.com/laoqing/p/11629941.html 一个系统或者网站在功能开发完成后一般最终都需要部署到服务器上运行,那么服务器的性能监控和分析就显 ...

  9. 腾讯云服务器CVM和轻量服务器区别十大不同点!

    关于腾讯云轻量应用服务器和云服务器CVM的区别,之前腾讯云百科写过一篇文章来对比,阿腾云又更新了一篇新的区别对比文章,比之前的要更加详细,包括轻量服务器的使用限制.CPU型号.公网限制月流量.内网连通 ...

最新文章

  1. python获取输入数字_python获取从命令行输入数字的方法
  2. centos连接jupyter方法并安装jupytext插件
  3. JavaFX技巧11:更新只读属性
  4. MySQL ALTER命令
  5. SAP License:SAP与中国电子技术标准化研究院开展交流活动
  6. matlab可以模拟力学实验吗,基于Matlab GUI的渗流力学虚拟仿真实验平台开发
  7. [定理证明]正态随机过程又是马尔科夫过程的充要条件(高斯-马尔科夫过程的充要条件)...
  8. STM32单片机OLED经典2048游戏单片机小游戏
  9. Python基础学习笔记-第一章
  10. Spring Bean前置后置处理器的使用
  11. OSPF路由器类型 ABR与ASBR路由聚合区别
  12. Visual Studio无法下载及安装
  13. 如何设置VS的唯美背景
  14. 职场中为人处世那些事!
  15. 你的手帕再也不干净了_我再也不会将手机带回国际航班了。 你也不要
  16. Netty源码解析之内存管理-PooledByteBufAllocator-PoolArena
  17. 如何清空MSMQ的队列消息
  18. 严重性 代码 说明 项目 文件 行 禁止显示状态 警告 CS8032 无法从...创建分析器...的实例: 未能加载文件或程序集...或它的某一个依赖项。系统找不到指定的文件
  19. C#基于Emgucv的圆形识别定位方法
  20. 软件需求说明书(文档模板)

热门文章

  1. 辽宁大学--数据库应用技术--新闻网站--期末大作业
  2. java实现整数相除结果保留一位小数并四舍五入
  3. CFNetwork初步
  4. P3D——《Learning Spatio-Temporal Representation with Pseudo-3D Residual Networks》概述
  5. 推荐!2019比较主流的8款自助建站平台!
  6. Spring AOP的实现原理及应用场景(通过动态代理)
  7. 小学计算机上册教案,小学信息技术上册教案
  8. 我是如何从0开始,在23天里完成一款Android游戏开发的 – Part4~7
  9. mysql 时区 , 夏令时,冬令时
  10. 什么是.NETCore?