Все вопросы: [scalability]

207 вопросов

похожие теги: scalable
0
голосов
3ответов
276 просмотров

Rails: scaling with group calculations

Currently I am running something similar to this command: Person.sum(:cholesterol, :group => :age) which seems to work great when I have a small number of records. However when I attempt to call this with a few thousand records or more in the table, it takes literally minutes to run. Howeve...

0
голосов
3ответов
315 просмотров

Scaling up from 1 Web Server + 1 DB Server

We are Web 2.0 company that built a hosted Content Management solution from the ground up using LAMP. In short, people log into our backend to manage their website content and then use our API to extract that content. This API gets plugged into templates that can be hosted anywhere on the interwe...

2
голосов
4ответов
2410 просмотров

How do I maintain state across multiple web servers?

Can I have multiple web servers hooked up to a SQL Server cluster and still maintain a user's session? I've thought of various approaches. The one suggested by the Microsoft site is to use response.redirect to the "correct" server. While I can understand the reasoning for this, it seems kind o...

3
голосов
4ответов
234 просмотров

Are there any scalability best practices specifically for sites with huge audiences?

While this question has been asked in a variety of contexts before, I can't find any information pertaining specifically to sites targeting very large audiences - for example on the scale of hundreds of thousands or even millions of users. When writing sites that target smaller audiences (such a...

1
голосов
3ответов
325 просмотров

How do different visitor metrics relate?

Hypothetically, tets say someone tells you to to expect X (like 100,000 or something) number of unique visitors per day as a result of a successful marketing campaing. How does that translate to peak requests/second? Peak simultaneous requests? Obviously this depends on many factors, such as ...

3
голосов
3ответов
134 просмотров

Where should IsChanged functionality be handled?

I'm having an internal debate about where I should handle checking for changes to data and can't decide on the practice that makes the most sense: Handling IsChanged in the GUI - This requires persistence of data between page load and posting of data which is potentially a lot of bandwidth/page...

52
голосов
1ответов
29880 просмотров

Pros and Cons of Sticky Session / Session Affinity load blancing strategy?

One approach to high scalability is to use network load balancing to split processing load between several servers. One challenge that this approach presents is where servers are state aware - storing user state in a "session". One solution to this problem is "sticky session" (aka "session af...

1
голосов
8ответов
4390 просмотров

High availability & scalability for C#

I've got a C# service that currently runs single-instance on a PC. I'd like to split this component so that it runs on multiple PCs. Each PC should be assigned a certain part of the work. If one PC fails, its work should be moved to a backup machine. Data synchronization can be done by the DB, s...

1
голосов
5ответов
639 просмотров

What happens when a live site has too many users?

I'm new to production level web development, so sorry if this is obvious. My site has a potential to have a sudden surge of (permanent) users and I'm wondering what happens if too many users sign up in a short period of time, causing the site to run slowly. Since development takes time, would it ...

2
голосов
2ответов
1048 просмотров

Scalability implications of converting stateless session beans to POJOs

Imagine a heavily-used service object that's implemented as an EJB 2.1 SLSB, and that also happens to be thread-safe in itself by virtue of having no state whatsoever. All its public methods are transactional (via CMT), most simply requiring a transaction, but some requiring a new transaction. I...

3
голосов
3ответов
521 просмотров

What does it mean that Linq To SQL is not scalable?

I've once heard from some developers that L2S is not scalable. I'm not sure that I fully understand what that means. I guess that it has something to do with the layers in your app (provided your app is a layered one). Can someone please shed some light on this subject? Thanks, Avi

3
голосов
2ответов
289 просмотров

Rails ActiveRecord Table Indexes - When should they be used?

I have heard over and over that you should add indexes to any foreign key you will be doing joins on. I have also heard you should have indexes for fields you will do queries on. Does anyone have a fairly exhaustive list or set of guidelines around when and when not to add indexes? There mus...

-1
голосов
2ответов
1269 просмотров

What's the biggest website served by JBoss?

My "normal" development is based on java (1.6), a database (db2, oracle, mysql) and an application server (JBoss). I wonder if there is a limit of concurrent users that I can handle with this configuration. I think running a site like google.com would'nt be possible this way. But where is the ...

0
голосов
3ответов
184 просмотров

controlling app flow between different scripts in PHP

i have a php script that accepts a POST request as a listener to a web service then process all the data to two final arrays, I'm looking for a way to initiate a second script that GET's those serialized arrays and do some more processing. include() will not be good for me since i actually want t...

27
голосов
3ответов
17291 просмотров

Failed requests by length in my ApacheBench load test result

I have a website in PHP, Lighttpd. It uses also MySQL on Centos 5. I've tested my PHP with code below with Apache Bench (ab). It resulted in some errors (Failed Requests) indicating other length than normal. I'm absolutely sure that my PHP result should always have the same exact length. I've rev...

36
голосов
3ответов
52412 просмотров

socket: Too many open files (24) apache bench lighttpd

When I start Apache Bench test: ab -n 10000 -c 1300 http://domain.com/test.php I get error: socket: Too many open files (24) When i change to '-c 1000' it works fine. Because I can have more than 1000 concurrent users I would like to fix socket too many open files problem or increase...

5
голосов
4ответов
3613 просмотров

Auto-completion for names against a SQL database

I have a text field in my web app where I want to do auto-completion (e.g. the user types "St" and I can suggest "Steve"). The names I'm matching against are in a SQL database table of users. My question is, how can I make this happen in a way that will scale to massive amounts of users? Ther...

2
голосов
4ответов
1560 просмотров

How to increase PHP over HTML speed?

I have a PHP file that gets HTML from Memcached and serves it to the user. When I test it like this: ab -n 1000 -c 100 http://website.com/test.php It does 22 requests per second. But when I put the same HTML to an HTML file and do this test: ab -n 1000 -c 100 http://website.com/test.h...

3
голосов
4ответов
1171 просмотров

How to improve PHP performance?

I've created PHP application for Facebook. It uses MySQL, Memcached and works on Lighttpd on Centos 2,6 Ghz and 2 GB RAM. it's basically one PHP file that after first run is cached and every next time it's served in 0,8 ms directly from Memcached. What more can I do to shorten this time?

0
голосов
1ответов
454 просмотров

What is the most common approach for designing large scale server programs?

Ok I know this is pretty broad, but let me narrow it down a bit. I've done a little bit of client-server programming but nothing that would need to handle more than just a couple clients at a time. So I was wondering design-wise what the most mainstream approach to these servers is. And if people...

7
голосов
6ответов
1764 просмотров

How to check the scalability of my application

I have developed an application that will create lot of PDF's and serve those file. (Its normal Servlet-Buffering serving). How to make sure my application works efficient with multiple request? Is there any tool available to test the load/scalability/efficiency and how many parallel request do...

0
голосов
2ответов
204 просмотров

Worrying about scalability of a new site

I am building a webapp that has the following characteristics: It only has a small number of pages, home,contact us, about,singup,etc. Each user has one jquery-based page that allows them to drag/drop/manipulate DOM elements. When a user has finished manipulating elements they can hit Save and ...

22
голосов
8ответов
2237 просмотров

Does Seaside scale?

Seaside is known as "the heretical web framework". One of the points that make it heretical is that it has much shared state. That however is something which, in my current understanding, hinders easy scaling. Ruby on rails on the other hand shares as less state as possible. It has been known t...

25
голосов
5ответов
11567 просмотров

Design Patterns (or techniques) for Scalability

What design patterns or techniques have you used that are specifically geared toward scalability? Patterns such as the Flyweight pattern seem to me to be a specialized version of the Factory Pattern, to promote high scalability or when working within memory or storage constraints. What others...

1
голосов
3ответов
197 просмотров

Scalable Database System, Critique requested

I'm looking to build a scalable database solution for the back end of my website. I've been reading about database design lately, and I seem to have developed an idea on my own that might work. I think this is a novel way of maintaining n databases with synchronized data, but I could be wrong. So...

0
голосов
1ответов
296 просмотров

Does AutoSproc Scale Well?

We use AutoSproc as our DAL, not my choice, but it was there when I started working at my job. I was wondering if any one had any experience using AutoSproc with large web applications? I'm just curious if it would scale well as our application is growing and we might need to pop it into a web fa...

38
голосов
3ответов
43736 просмотров

Increasing PHP memory_limit. At what point does it become insane?

In a system I am currently working on, there is one process that loads large amount of data into an array for sorting/aggregating/whatever. I know this process needs optimising for memory usage, but in the short term it just needs to work. Given the amount of data loaded into the array, we keep ...

8
голосов
6ответов
4481 просмотров

High scalability technology stack

I'm building a webservice that is going to be under ridiculous load (thousands to ten-thousands of queries per second). My normal stack of apache, PHP, memcache and some DB will be able to handle it with a nice load balancer infront and lots of machines, but I'm wondering if there are better solu...

1
голосов
3ответов
1233 просмотров

Java or mono for a new project

I need your advice about framework selection (Java vs Mono) for a new large scale web project which will be developed for linux hardware. Which platform do you prefer and why ? Best Regards, Sirmak

3
голосов
3ответов
1664 просмотров

What makes a JavaFx 1.2 Scene Graph Refresh?

My first question =). I'm writing a video game with a user interface written in JavaFx. The behavior is correct, but I'm having performance problems. I'm trying to figure out how to figure out what is queuing up the refreshes which are slowing down the app. I've got a relatively complex Scene G...