scalability

How to run meteor application on two or more Heroku dynos?

喜你入骨 提交于 2019-12-23 20:15:46
问题 I have Meteor application which is run on Heroku platform using 1 dyno. When I increase number of dynos it stops working, reporting some problems with XHR (ERROR 404) on client side. Does anybody successfully run Meteor app on two or more Heroku dynos? If so, what should I do in order to get it working? 回答1: No, unfortunately Meteor does not work on Heroku with more than one dyno. Meteor needs session affinity, which Heroku does not currently offer. Meteor needs session affinity: Running

How to achieve distributed processing and high availability simultaneously in Kafka?

情到浓时终转凉″ 提交于 2019-12-23 16:54:52
问题 I have a topic consisting of n partitions. To have distributed processing I create two processes running on different machines. They subscribe to the topic with same groupd id and allocate n/2 threads, each of which processes single stream(n/2 partitions per process). With this I will have achieved load distribution, but now if process 1 crashes, than process 2 cannot consume messages from partitions allocated to process 1, as it listened only on n/2 streams at the start. Or else, if I

Boost::Spirit::Qi autorules — avoiding repeated copying of AST data structures

社会主义新天地 提交于 2019-12-23 14:35:12
问题 I've been using Qi and Karma to do some processing on several small languages. Most of the grammars are pretty small (20-40 rules). I've been able to use autorules almost exclusively, so my parse trees consist entirely of variants, structs, and std::vectors. This setup works great for the common case: 1) parse something (Qi), 2) make minor manipulations to the parse tree (visitor), and 3) output something (Karma). However, I'm concerned about what will happen if I want to make complex

Most efficient way of getting the next unused id

只愿长相守 提交于 2019-12-23 11:14:23
问题 (related to Finding the lowest unused unique id in a list and Getting unused unique values on a SQL table) Suppose I have a table containing on id column and some others (they don't make any difference here): +-----+-----+ | id |other| +-----+-----+ The id has numerical increasing value. My goal is to get the lowest unused id and creating that row. So of course for the first time I run it will return 0 and the the row of this row would have been created. After a few executions it will look

Fast Text Search Over Logs

被刻印的时光 ゝ 提交于 2019-12-23 07:59:07
问题 Here's the problem I'm having, I've got a set of logs that can grow fairly quickly. They're split into individual files every day, and the files can easily grow up to a gig in size. To help keep the size down, entries older than 30 days or so are cleared out. The problem is when I want to search these files for a certain string. Right now, a Boyer-Moore search is unfeasibly slow. I know that applications like dtSearch can provide a really fast search using indexing, but I'm not really sure

What is the most efficient way to specify user permissions in a database?

左心房为你撑大大i 提交于 2019-12-23 04:39:08
问题 I have an application that associates users with specific groups in a Facebook-style manner. For example: User A is associated with Group 1 and Group 2 User B is associated with Group 2 and Group 4 Users can create posts (small amounts of text) for each group that they belong to. I have two types of pages: the home page for the logged-in user, and a page for each group. The user's home page shows posts from every other user that is in every group that the logged-in user belongs to . The group

Implementing inheritance in MySQL: alternatives and a table with only surrogate keys

主宰稳场 提交于 2019-12-22 18:56:14
问题 This is a question that has probably been asked before, but I'm having some difficulty to find exactly my case, so I'll explain my situation in search for some feedback: I have an application that will be registering locations, I have several types of locations, each location type has a different set of attributes, but I need to associate notes to locations regardless of their type and also other types of content (mostly multimedia entries and comments) to said notes. With this in mind, I

MySQL in AWS EC2 - How does it scale?

可紊 提交于 2019-12-22 08:36:26
问题 When you move beyond using one instance for your database, what is the best practice when using EC2? If the first instance is a master and you're spinning up slaves, they would need to scan the transaction log and bring themselves up to date before the slaves are useable correct? If the master had been running awhile and was busy, this could take a very long time, right? Is it smarter to use something besides master-slave on EC2? I've seen MySQL Enterprise has support for EC2 but it wasn't

Local SQLite vs Remote MongoDB

徘徊边缘 提交于 2019-12-22 04:14:19
问题 I'm designing a new web project and, after studying some options aiming scalability, I came up with two database solutions: Local SQLite files carefully designed for a scalable fashion (one new database file for each X users, as writes will depend on user content, with no cross-user data dependence); Remote MongoDB server (like Mongolab), as my host server doesn't serve MongoDB. I don't trust MySQL server at current shared host, as it cames down very frequently (and I had problems with MySQL

How can I make Qooxdoo virtual list scalable?

*爱你&永不变心* 提交于 2019-12-22 00:21:51
问题 I need to show list of data , at least 1 million rows (Big data , machine learning). I do not need to show at once , remotetablemodel of qooxdoo table works fine but instead of table i choose list as design choice. Below is a test i've made. //create the model data, 1mil items var rawData = []; for (var i = 0; i < 1000000; i++) { rawData[i] = "Item No " + i; } var model = new qx.data.Array(rawData); //create the list var list = new qx.ui.list.List(model); this.getRoot().add(list); I